CVE-2020-35919
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the net2 crate before version 0.2.36 for Rust, where the crate made invalid assumptions about the memory layout of std::net::SocketAddr. The vulnerability was discovered and disclosed in December 2020 (RustSec Advisory).

Technical details

The vulnerability stems from the net2 crate's assumption that std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. The crate simply casts pointers to convert socket addresses to the system representation. However, the standard library makes no guarantees about memory layout, which could lead to invalid memory access if the standard library implementation changes (RustSec Advisory). The vulnerability has a CVSS score of 5.5 (MEDIUM) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

Impact

If exploited, this vulnerability could result in invalid memory access when the standard library changes its implementation. The impact primarily affects availability (High), while there are no direct impacts on confidentiality or integrity. No warnings or errors would be emitted when such changes occur, making the issue particularly concerning (RustSec Advisory).

Exploitability

The vulnerability requires local access with low attack complexity and low privileges. No user interaction is needed to exploit this vulnerability. The scope is unchanged, meaning the impact is limited to the vulnerable component's security scope (RustSec Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.2.36 of the net2 crate. Users are advised to upgrade to this version or later to address the issue (RustSec Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68537HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
CVE-2026-68523HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
RUSTSEC-2026-0289NONEN/A
  • Rust logoRust
  • pqc_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0287NONEN/A
  • Rust logoRust
  • cosmian_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0286NONEN/A
  • Rust logoRust
  • cryptoki
NoYesSep 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management