CVE-2023-40583

libp2p nodes vulnerable to OOM attack

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.

Category

7.5
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.24%
Vendor Advisory github.com
Affected: libp2p go-libp2p
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-40583?
CVE-2023-40583 has been scored as a high severity vulnerability.
How to fix CVE-2023-40583?
To fix CVE-2023-40583, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-40583 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-40583 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-40583?
CVE-2023-40583 affects libp2p go-libp2p.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.