Cryptographic Issues Affecting libp2p-core package, versions >=0.30.0-rc.1 <0.30.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUST-LIBP2PCORE-2929004
  • published 17 Jun 2022
  • disclosed 17 Jun 2022
  • credit Unknown

Introduced: 17 Jun 2022

CVE NOT AVAILABLE CWE-310 Open this link in a new tab

How to fix?

Upgrade libp2p-core to version 0.30.2 or higher.

Overview

libp2p-core is a rust implementation of libp2p networking stack.

Affected versions of this package are vulnerable to Cryptographic Issues due to a failure to verify the public key of a SignedEnvelope against the PeerId in a PeerRecord, it leads to any combination being considered valid. Exploiting this vulnerability makes it possible for an attacker to republish an existing PeerRecord with a different PeerId.

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None