# GHSA-wc36-xgcc-jwpr: Failure to verify the public key of a `SignedEnvelope` against the `PeerId` in a `PeerRecord`

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-02-07T12:00:00.000Z
- Modified: 2023-11-08T04:23:45.241Z
- Also known as: RUSTSEC-2022-0009

## Description

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`.

(As written by GitHub Advisory Database.)

## Affected

- libp2p-core (crates.io): from 0.30.0-rc.1 before 0.30.2; from 0.31.0-0 before 0.31.1

## References

- <https://github.com/libp2p/rust-libp2p> (package)
- <https://rustsec.org/advisories/RUSTSEC-2022-0009.html> (advisory, web)
- <https://crates.io/crates/libp2p-core> (package)

## Sources

- GitHub Advisory Database: [GHSA-wc36-xgcc-jwpr](https://github.com/advisories/GHSA-wc36-xgcc-jwpr), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0009](https://rustsec.org/advisories/RUSTSEC-2022-0009.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-wc36-xgcc-jwpr · Whole record: https://cve.day/GHSA-wc36-xgcc-jwpr.json · Rebuilt by cve.day 2026-11-25T22:56:43.091Z
