🛡️ GHSA-c439-chv8-8g2j — os-socketaddr

🟠 CVSS 8.0 — High ✅ No Known Exploit OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

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

Severity HIGH
CVSS Score 8.0
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2022-09-02
Updated 2026-08-12
Modified 2023-11-08
Fix URL N/A

Affected Packages

Software From version Fixed in
os-socketaddr

Similar Threats

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.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated