Security mailing lists by PureSourceCode

CVE-2020-35919

MEDIUM 5.5CVSS 3.1

socket2 invalidly assumes the memory layout of std::net::SocketAddr

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.

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-35920GHSA-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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD net2_project net2
cpe:2.3:a:net2_project:net2:*:*:*:*:*:rust:*:*
< 0.2.36 0.2.36
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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.