🛡️ GHSA-c439-chv8-8g2j — os-socketaddr
Description
os_socketaddr invalidly assumes the memory layout of std::net::SocketAddr
The [os_socketaddr](https://crates.io/crates/os_socketaddr) crate has assumed std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. It has simply casted the pointers to convert the socket addresses to the system representation.
These layout were [changed into idiomatic rust types](https://github.com/rust-lang/rust/pull/78802) in nightly std. Starting from rustc 1.64 the affected versions of this crate will have undefined behaviour.
Affected software
GHSA-c439-chv8-8g2j is recorded against 1 package.
- os-socketaddr
Timeline and source
Published on 2 September 2022 and last revised on 8 November 2023. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
rustsec.org (Web)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| os-socketaddr | — | — |
References
Similar Threats
- Unknown RUSTSEC-2022-0052
Site Security Check
Is os-socketaddr part of your stack?
GHSA-c439-chv8-8g2j is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.