Advisory

RUSTSEC-2022-0009

Also known as: GHSA-wc36-xgcc-jwpr

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

Not rated by the source.

Dates

Published
2022-02-07 12:00 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, introduced 0.31.0-0, fixed 0.31.1 (semver)

Fixed versions

0.30.2, 0.31.1

Fix

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

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: RustSec Advisory Database · CC0-1.0

Sources & licences