Live threats

All CVEs / Rust-lang

CVE-2020-35920Rust-lang Socket2

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.4%
probability of exploitation in 30 days · percentile 37
Auth required
Yes
Published
Dec 31, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

An issue was discovered in the socket2 crate before 0.3.16 for Rust. It has false expectations about the std::net::SocketAddr memory representation.

Original NVD text.

What to do

  1. Apply the vendor's security update for Socket2.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io net2 < 0.2.36 0.2.36 cargo update -p net2 --precise 0.2.36
crates.io net2 < 0.2.36 0.2.36 cargo update -p net2 --precise 0.2.36
crates.io net2 ≥ 0.0.0-0 < 0.2.36 0.2.36 cargo update -p net2 --precise 0.2.36
crates.io socket2 < 0.3.16 0.3.16 cargo update -p socket2 --precise 0.3.16
crates.io socket2 ≥ 0.0.0-0 < 0.3.16 0.3.16 cargo update -p socket2 --precise 0.3.16

Per OSV / GitHub Advisories (GHSA-458v-4hrf-g3m4, GHSA-c79c-gwph-gqfm, RUSTSEC-2020-0078, RUSTSEC-2020-0079). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rust-langsocket2< 0.3.16

Official sources

References

Links published by the sources. Open them with care.