What’s Vulnerable › Vulnerabilities
CVE-2020-35919: socket2 invalidly assumes the memory layout of std::net::SocketAddr
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-12-31 · updated 2026-06-17
Description
An issue was discovered in the net2 crate before 0.2.36 for Rust. It has false expectations about the std::net::SocketAddr memory representation.
Affected products
- Net2 Project Net2: before 0.2.36 — fixed in 0.2.36
- Crates.Io Net2: from 0.0.0-0 before 0.2.36 — fixed in 0.2.36
- Crates.Io Socket2: before 0.3.16 — fixed in 0.3.16
How to fix
Upgrade to a fixed version: Net2 Project Net2 0.2.36; Crates.Io Net2 0.2.36; Crates.Io Socket2 0.3.16. Check the vendor advisory for mitigations.
References
- https://rustsec.org/advisories/RUSTSEC-2020-0078.html
- https://rustsec.org/advisories/RUSTSEC-2020-0078.html
Get alerted when CVE-2020-35919 or the next vulnerability affects your stack