GitHub Advisoryadvisory · crates.io

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

HIGH Published 2022-06-17 Modified 2022-06-17 Official page ↗
Ecosystem
crates.io
Packages
libp2p-core
Severity
High
Reviewed
2022-06-17

Affected packages

• crates.io libp2p-core: >= 0.30.0-rc.1, < 0.30.2 → fixed in 0.30.2

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

References