CVE-2020-35920
MEDIUM 5.5CVSS 3.1socket2 invalidly assumes the memory layout of std::net::SocketAddr
An issue was discovered in the socket2 crate before 0.3.16 for Rust. It has false expectations about the std::net::SocketAddr memory representation.
- Published
- 31 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-188
- Also known as
- CVE-2020-35919GHSA-458v-4hrf-g3m4GHSA-c79c-gwph-gqfmRUSTSEC-2020-0078RUSTSEC-2020-0079
- Sources
- NVDJSONOSV GHSA-458v-4hrf-g3m4JSONOSV GHSA-c79c-gwph-gqfmJSONOSV RUSTSEC-2020-0078JSONOSV RUSTSEC-2020-0079JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | RustSec | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rust-lang | socket2cpe:2.3:a:rust-lang:socket2:*:*:*:*:*:rust:*:* |
< 0.3.16 | 0.3.16 |
| OSV | crates.io | socket2 | < 0.3.16 | 0.3.16 |
| OSV | crates.io | net2 | < 0.2.36 | 0.2.36 |
| OSV | crates.io | net2 | >= 0.0.0-0, < 0.2.36 | 0.2.36 |
| OSV | crates.io | socket2 | >= 0.0.0-0, < 0.3.16 | 0.3.16 |
References
- https://rustsec.org/advisories/RUSTSEC-2020-0079.html · Exploit, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-35920 · ADVISORY
- https://github.com/deprecrated/net2-rs/issues/105 · WEB, REPORT
- https://github.com/rust-lang/socket2-rs/issues/119 · WEB, REPORT
- https://github.com/rust-lang/socket2-rs · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2020-0078.html · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-35919 · ADVISORY
- https://github.com/deprecrated/net2-rs · PACKAGE
- https://crates.io/crates/net2 · PACKAGE
- https://crates.io/crates/socket2 · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 31 Dec 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Nov 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Nov 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 May 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)