Vulnerability DatabaseRUSTSEC-2020-0078

RUSTSEC-2020-0078
Rust vulnerability analysis and mitigation

Overview

The vulnerability (RUSTSEC-2020-0078) was discovered in the net2 crate versions before 0.2.36 for Rust. The issue involves incorrect assumptions about memory representation of std::net::SocketAddr, which could lead to security implications (RustSec Advisory).

Technical details

The vulnerability stems from the net2 crate making incorrect assumptions about the memory layout of std::net::SocketAddrV{4,6} matching libc::sockaddr. The issue is present in the socket.rs file where the addr2raw function performs unsafe casting between these types without proper validation (GitHub Issue). The vulnerability has been assigned CVE-2020-35919 with a CVSS v3.1 Base Score of 5.5 (MEDIUM) and vector: 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 net2 crate. According to the CVSS scoring, while there are no direct impacts on confidentiality or integrity, the vulnerability can lead to high availability impacts through potential crashes or system instability (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 metrics (NVD).

Mitigation and workarounds

The recommended mitigation is to upgrade to net2 crate version 0.2.36 or later, which contains the fix for this vulnerability (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

RUSTSEC-2026-0256NONEN/A
  • Rust logoRust
  • circular-buffer
NoYesAug 11, 2026
RUSTSEC-2026-0255NONEN/A
  • Rust logoRust
  • sized-chunks
NoNoAug 11, 2026
RUSTSEC-2026-0254NONEN/A
  • Rust logoRust
  • sp-sized-chunks
NoNoAug 11, 2026
RUSTSEC-2026-0252NONEN/A
  • Rust logoRust
  • orx-split-vec
NoYesAug 11, 2026
RUSTSEC-2026-0242NONEN/A
  • Rust logoRust
  • dcrypt-api
NoYesAug 09, 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