cargo package report

Is net2 safe?

2 known vulnerabilities, worst severity MODERATE.

cvss
5.0

how bad it is if exploited, out of 10

epss
0.40%

chance of exploitation in the next 30 days

xyz score
not scored

CyberXYZ composite, out of 10

fig. 01 — GHSA-c79c-gwph-gqfm, the advisory selected below

// advisories

GHSA-c79c-gwph-gqfm

MODERATECVE-2020-35919

The net2 crate has assumed std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. It has simply casted the pointers to convert the socket addresses to the system representation. The standard library does not say anything about the memory layout, and this will cause invalid memory access if the standard library changes the implementati

Affected
< 0.2.36
Fixed in
0.2.36
Published
2022-05-24
Source
github

GHSANVDMITREreferencereference


// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so cargo packages are not covered.


Checked 2026-09-22 at 00:39 UTC. The most recent advisory here was published 2022-05-24. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.
Is net2 safe? cargo package security report | CyberXYZ