Rust advisories / pnet
Vulnerability MediumRUSTSEC-2019-0037 · pnet
RUSTSEC-2019-0037: Compiler optimisation for next_with_timeout in pnet::transport::IcmpTransportChannelIterator flaws to SEGFAULT
Short answerA security vulnerability in the pnet crate: Compiler optimisation for next_with_timeout in pnet::transport::IcmpTransportChannelIterator flaws to SEGFAULT. Medium severity (CVSS 6.0). Fixed in 0.27.2: update to a fixed version.
| Crate | pnet |
|---|---|
| Type | Vulnerability (memory-corruption) |
| Affected versions | Before 0.27.2. |
| Fixed in | 0.27.2 |
| Severity | Medium, CVSS 6.0 CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
| Published | 2019-06-11 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2019-25054, GHSA-24g6-5rx7-58wj, GHSA-r6ff-2q3c-v3pv |
| Affected functions | pnet::transport::IcmpTransportChannelIterator |
What to do
- See which version you have:
cargo tree -i pnet(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p pnet. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplepnet = "0.27.2") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
Affected versions of this crate were optimized out by compiler, which caused dereference of uninitialized file descriptor which caused segfault.
References
- Package: crates.io/crates/pnet
- Advisory: rustsec.org/advisories/RUSTSEC-2019-0037.html
- Report: github.com/libpnet/libpnet/issues/449
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?