Skip to content
OpenAdvisories
High GHSA-wc36-xgcc-jwpr RUSTSEC-2022-0009

Failure to verify the public key of a `SignedEnvelope` against the `PeerId` in a `PeerRecord`

Published Jun 17, 2022 · Updated Nov 8, 2023 · Assigned by GHSA

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

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io libp2p-core >= 0.30.0-rc.1, < 0.30.2 0.30.2 GHSA-wc36-xgcc-jwpr
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 RUSTSEC-2022-0009

References