Allocation of Resources Without Limits or Throttling Affecting github.com/libp2p/go-libp2p/core/crypto package, versions <0.27.8>=0.28.0 <0.28.2>=0.29.0 <0.29.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.51% (75th percentile)

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 Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMLIBP2PGOLIBP2PCORECRYPTO-5829858
  • published9 Aug 2023
  • disclosed8 Aug 2023
  • creditmarten-seemann

Introduced: 8 Aug 2023

CVE-2023-39533  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade github.com/libp2p/go-libp2p/core/crypto to version 0.27.8, 0.28.2, 0.29.1 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling when a malicious peer can use large RSA keys to run a resource exhaustion attack & force a node to spend time doing signature verification of the large key. This vulnerability can be exploited during the Noise handshake and the libp2p x509 extension verification step.

Note:

To protect your application, it's necessary to update to these patch releases AND to use the updated Go compiler (1.20.7 or 1.19.12, respectively)

CVSS Base Scores

version 3.1