Rust advisories / libp2p
Vulnerability HighRUSTSEC-2022-0084 · libp2p
RUSTSEC-2022-0084: libp2p Lack of resource management DoS
Short answerA security vulnerability in the libp2p crate: libp2p Lack of resource management DoS. High severity (CVSS 7.5). Fixed in 0.45.1: update to a fixed version.
| Crate | libp2p |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.45.1. |
| Fixed in | 0.45.1 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2022-07-12 |
| Last changed | 2026-10-12 |
| Also known as | CVE-2022-23486, GHSA-jvgw-gccv-q5p8 |
What to do
- See which version you have:
cargo tree -i libp2p(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p libp2p. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplelibp2p = "0.45.1") 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
libp2p allows a potential attacker to cause victim p2p node to run out of memory
The out of memory failure can cause crashes where libp2p is intended to be used within large scale networks leading to potential Denial of Service (DoS) vector
Users should upgrade or reference the DoS mitigation strategies.
References
- Package: crates.io/crates/libp2p
- Advisory: rustsec.org/advisories/RUSTSEC-2022-0084.html
- Web: github.com/libp2p/rust-libp2p/pull/2697
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?