HistoryEditJSON (OSV)

RUSTSEC-2022-0009

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

Reported
Issued
Package
libp2p-core (crates.io)
Type
Vulnerability
Categories
Aliases
Patched
  • ^0.30.2
  • >=0.31.1
Unaffected
  • <0.30.0-rc.1
Affected Functions
Version
libp2p_core::PeerRecord::from_signed_envelope
  • >=0.30.0-rc.1

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.

Advisory available under CC0-1.0 license.