CVE-2020-35919 json
`net2` invalidly assumes the memory layout of std::net::SocketAddr
published 6y ago modified 4mo ago also CVE-2020-35920 , GHSA-458v-4hrf-g3m4 , GHSA-c79c-gwph-gqfm , RUSTSEC-2020-0078 , RUSTSEC-2020-0079 , EUVD-2022-3525
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io net2 0.2.36
- crates.io socket2 0.3.16
- net2_project net2 0.2.36
- rust-net2 Debian 14, Debian 13, Debian 12 0.2.37-1
debian advisories DEBIAN-CVE-2020-35919
Is CVE-2020-35919 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2020-0078.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | net2 | <0.2.36 >=0.0.0-0, <0.2.36 |
0.2.36 |
| crates.io | socket2 | <0.3.16 >=0.0.0-0, <0.3.16 |
0.3.16 |
Classification
- Weakness
-
- CWE-188 Reliance on Data/Memory Layout
References
-
rustsec.org
/advisories/RUSTSEC-2020-0078.html
web, exploit, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-35919
advisory
-
github.com
/deprecrated/net2-rs/issues/105
web, report
-
github.com
/deprecrated/net2-rs
package
-
nvd.nist.gov
/vuln/detail/CVE-2020-35920
advisory
-
github.com
/rust-lang/socket2-rs/issues/119
web, report
-
github.com
/rust-lang/socket2-rs
package
-
rustsec.org
/advisories/RUSTSEC-2020-0079.html
web, advisory
-
crates.io
/crates/net2
package
-
crates.io
/crates/socket2
package
Sources
- CVE List CVE-2020-35919
- GitHub Advisory GHSA-c79c-gwph-gqfm
- GitHub Advisory GHSA-458v-4hrf-g3m4
- NVD CVE-2020-35919
- OSV RUSTSEC-2020-0078
- OSV RUSTSEC-2020-0079
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.