RUSTSEC-2022-0009
HIGHFailure to verify the public key of a `SignedEnvelope` against the `PeerId` in a `PeerRecord`
Affected versions of this crate did not check that the public key the signature was created with matches the peer ID of the peer record.
Any combination was considered valid.
This allows an attacker to republish an existing PeerRecord with a different PeerId.
- Published
- 7 Feb 2022
- Last modified
- 8 Nov 2023
- Also known as
- GHSA-wc36-xgcc-jwpr
- Sources
- OSV GHSA-wc36-xgcc-jwprJSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | libp2p-core | >= 0.30.0-rc.1, < 0.30.2 | 0.30.2 |
| OSV | crates.io | libp2p-core | >= 0.30.0-rc.1, < 0.30.2; >= 0.31.0-0, < 0.31.1 | 0.30.2, 0.31.1 |
References
- https://github.com/libp2p/rust-libp2p · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2022-0009.html · WEB, ADVISORY
- https://crates.io/crates/libp2p-core · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Feb 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jun 2022)