Skip to content

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

Unknown
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io libp2p-core(crates.io) >= 0.30.0-rc.1, < 0.30.2; >= 0.31.0-0, < 0.31.1 0.30.2, 0.31.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io libp2p-core(crates.io) >= 0.30.0-rc.1, < 0.30.2 0.30.2
crates.io libp2p-core(crates.io) >= 0.31.0-0, < 0.31.1 0.31.1

References