CVE-2023-40583: libp2p go-libp2p Uncontrolled Resource Consumption
Vulnerability summary
CVE-2023-40583 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in libp2p go-libp2p. EPSS estimates a 0.95% chance of exploitation in the next 30 days, higher than 60.7% of scored vulnerabilities.
Timeline
- 25-08-2023PublishedVulnerability first disclosed.
- 02-10-2024Last modifiedVulnerability information updated.
Description
libp2p is a networking stack and library modularized out of The IPFS Project, and bundled separately for other tools to use. In go-libp2p, by using signed peer records a malicious actor can store an arbitrary amount of data in a remote node’s memory. This memory does not get garbage collected and so the victim can run out of memory and crash. If users of go-libp2p in production are not monitoring memory consumption over time, it could be a silent attack i.e. the attacker could bring down nodes over a period of time (how long depends on the node resources i.e. a go-libp2p node on a virtual server with 4 gb of memory takes about 90 sec to bring down; on a larger server, it might take a bit longer.) This issue was patched in version 0.27.4.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.95%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
0.00 pp
From 0.95% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Github.com/libp2p1 product
- go-libp2p< 0.27.4
Libp2p1 product
- go-libp2p< 0.27.4
Protocol1 product
- libp2p< 0.27.4
3 vendors · 3 products
References
6 links- github.com/libp2p/go-libp2p/security/advisories/GHSA-gcq9-qqwx-rgj3X Refsource CONFIRMWEBAdvisoryVendor Advisory
- github.com/libp2p/go-libp2p/commit/45d3c6fff662ddd6938982e7e9309ad5fa2ad8ddX Refsource MISCWEBFIXPatch
- github.com/libp2p/go-libp2pPACKAGE