Email me

Rust advisories / net2

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.

Cratenet2
TypeUnmaintained
Affected versionsEvery version.
Fixed innot applicable (the crate is unmaintained)
Severitynot scored
Published2020-05-01
Last changed2020-10-02
Also known asnone

What to do

  1. Move to socket2 (our data on it).
  2. If you cannot move yet, acknowledge it in your audit config so CI stays green while you plan: add "RUSTSEC-2020-0016" to ignore in .cargo/audit.toml or deny.toml, with a comment saying why.
  3. 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

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

Full security history of 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?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ