Vulnerability DatabaseRUSTSEC-2020-0079

RUSTSEC-2020-0079
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the socket2 crate before version 0.3.16 for Rust programming language, identified as RUSTSEC-2020-0079 (CVE-2020-35920). The vulnerability was reported on December 31, 2020, and involves incorrect assumptions about memory representation in the std::net::SocketAddr implementation (RustSec Advisory).

Technical details

The vulnerability stems from the socket2 crate making false assumptions about the std::net::SocketAddr memory representation. The issue specifically involves unsafe casting of std::net::SocketAddrV4 and SocketAddrV6 into libc::sockaddr without proper guarantees from the standard library about the layout of these structures. 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 Database).

Impact

The vulnerability could potentially lead to undefined behavior (UB) if the memory representation of the affected structures changes. This particularly affects systems where the socket2 crate is used for network socket operations (GitHub Issue).

Exploitability

The vulnerability requires local access and low complexity to exploit, as indicated by the CVSS metrics. No known exploits in the wild have been reported at the time of assessment (NVD Database).

Mitigation and workarounds

The vulnerability has been fixed in socket2 crate version 0.3.16 and later. Users are advised to upgrade to the latest version to mitigate this security 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-46369HIGH7.5
  • Rust logoRust
  • nimiq-blockchain
NoYesAug 12, 2026
GHSA-8rw6-p7m8-63jpMEDIUM6.5
  • Rust logoRust
  • surrealdb
NoYesAug 14, 2026
CVE-2026-73430MEDIUM5.3
  • Rust logoRust
  • russh
NoYesAug 12, 2026
CVE-2026-73429MEDIUM5.3
  • Rust logoRust
  • yazi
NoYesAug 12, 2026
CVE-2026-73489MEDIUM4.3
  • Rust logoRust
  • russh
NoYesAug 13, 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