Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. libp2p-core
  4. ›
  5. GHSA-wc36-xgcc-jwpr

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

June 17, 2022

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.

References

  • github.com/advisories/GHSA-wc36-xgcc-jwpr
  • github.com/libp2p/rust-libp2p
  • rustsec.org/advisories/RUSTSEC-2022-0009.html

Code Behaviors & Features

Detect and mitigate GHSA-wc36-xgcc-jwpr with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.30.0-rc.1 before 0.30.2

Fixed versions

  • 0.30.2

Solution

Upgrade to version 0.30.2 or above.

Source file

cargo/libp2p-core/GHSA-wc36-xgcc-jwpr.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:16 +0000.