Vulnerability DatabaseRUSTSEC-2020-0081

RUSTSEC-2020-0081: 
Rust vulnerability analysis and mitigation

Overview

The vulnerability (RUSTSEC-2020-0081/CVE-2020-35922) was discovered in the mio crate versions before 0.7.6 for Rust, identified on November 2, 2020. The issue relates to incorrect assumptions about the memory representation of std::net::SocketAddr in the Rust standard library (NVD).

Technical details

The vulnerability stems from unsafe assumptions in the mio crate's handling of socket address memory layouts. Specifically, in mio/src/sys/unix/net.rs, the code assumes that the memory layout of SocketAddrV4 and SocketAddrV6 matches exactly with libc::sockaddr, which is not guaranteed by Rust's standard library. This could lead to undefined behavior if the representation changes, such as when padding is added early in the struct, potentially resulting in C code reading uninitialized bytes (GitHub Issue). The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (MEDIUM) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability primarily affects the availability of systems using the affected versions of the mio crate. According to the CVSS metrics, while there is no impact on confidentiality or integrity, there is a high impact on availability when exploited (NVD).

Exploitability

The vulnerability requires local access with low complexity and low privileges to exploit. No user interaction is required for exploitation, as indicated by the CVSS vector (NVD).

Mitigation and workarounds

The vulnerability was fixed in mio version 0.7.6. Users should upgrade to this version or later to mitigate the issue (NVD).

Additional resources


Source: This report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-6w6g-hm98-mhgmHIGH8.7
  • Rust logoRust
  • hickory-resolver
NoYesOct 05, 2026
GHSA-5j98-2g5x-46v6HIGH7.5
  • Rust logoRust
  • hickory-resolver
NoYesOct 05, 2026
GHSA-cjcg-cxmh-9wcrHIGH7.5
  • Rust logoRust
  • praxis-proxy
NoYesOct 02, 2026
GHSA-6f2x-v7q7-m7m5MEDIUM6.9
  • Rust logoRust
  • hickory-resolver
NoYesOct 05, 2026
RUSTSEC-2026-0333NONEN/A
  • Rust logoRust
  • noyalib
NoYesOct 06, 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