Advisory

GHSA-wc36-xgcc-jwpr

Also known as: RUSTSEC-2022-0009

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-06-17 00:01 UTC
Modified
2023-11-08 04:23 UTC

Affected packages and fixes

libp2p-core

crates.io · All systems

Affected

  • introduced 0.30.0-rc.1, fixed 0.30.2 (semver)

Fixed versions

0.30.2

Fix

  • Fixed version 0.30.2
    cargo update -p libp2p-core --precise 0.30.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences