UnmaintainedRUSTSEC-2020-0016 · net2
RUSTSEC-2020-0016: `net2` crate has been deprecated; use `socket2` instead
Short answerNot a bug report: net2 is no longer maintained, so future security issues will not be fixed. The advisory points to socket2 as the replacement.
| Crate | net2 |
|---|---|
| Type | Unmaintained |
| Affected versions | Every version. |
| Fixed in | not applicable (the crate is unmaintained) |
| Severity | not scored |
| Published | 2020-05-01 |
| Last changed | 2020-10-02 |
| Also known as | none |
What to do
- Move to socket2 (our data on it).
- If you cannot move yet, acknowledge it in your audit config so CI stays green while you plan: add
"RUSTSEC-2020-0016"toignorein.cargo/audit.tomlordeny.toml, with a comment saying why. - Find who pulls it in:
cargo tree -i net2.
Details from the advisory
The net2 crate has been deprecated and users are encouraged to considered socket2 instead.
References
- Package: crates.io/crates/net2
- Advisory: rustsec.org/advisories/RUSTSEC-2020-0016.html
- Web: github.com/deprecrated/net2-rs/commit/3350e3819adf151709047e93f25583a5df681091
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for net2
Up next
Same cratenet2: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?