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

Not scored Published

Attackers can spoof peer identities by republishing records with mismatched keys, bypassing identity verification in libp2p networks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-wc36-xgcc-jwpr?

GHSA-wc36-xgcc-jwpr is a vulnerability in libp2p-core, published on 7 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Which versions are affected by GHSA-wc36-xgcc-jwpr?

3 open source packages ship an affected version, including libp2p-core.

PackageAffectedFixed in
libp2p-core crates.ioFrom 0.30.0-rc.10.30.2, 0.31.1
libp2p-core crates.ioFrom 0.30.0-rc.10.30.2
libp2p-core crates.ioFrom 0.30.0-rc.10.30.2

How do I fix GHSA-wc36-xgcc-jwpr?

Upgrade libp2p-core to a fixed version for your release line: 0.30.2 or 0.31.1.

Is GHSA-wc36-xgcc-jwpr being exploited?

There is no known exploitation of GHSA-wc36-xgcc-jwpr in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2022-0009.

Is GHSA-wc36-xgcc-jwpr in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free