{"cve":"CVE-2023-40583","nvd":{"published":"2023-08-25T21:15:09.000","modified":"2026-06-17T06:18:34.563","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-400"],"references":["https://github.com/libp2p/go-libp2p/commit/45d3c6fff662ddd6938982e7e9309ad5fa2ad8dd","https://github.com/libp2p/go-libp2p/releases/tag/v0.27.4","https://github.com/libp2p/go-libp2p/releases/tag/v0.27.7","https://github.com/libp2p/go-libp2p/security/advisories/GHSA-gcq9-qqwx-rgj3","https://github.com/libp2p/go-libp2p/commit/45d3c6fff662ddd6938982e7e9309ad5fa2ad8dd"],"products":["protocol:libp2p"],"source":"nvd","synced_at":"2026-10-19T21:39:14.809778102+00:00"},"epss":{"cve":"CVE-2023-40583","score":0.00952,"percentile":0.61336,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gcq9-qqwx-rgj3","url":"https://osv.dev/vulnerability/GHSA-gcq9-qqwx-rgj3","summary":"libp2p nodes vulnerable to OOM attack","modified":"2023-11-17T22:07:30Z","packages":[{"ecosystem":"Go","name":"github.com/libp2p/go-libp2p","purl":"pkg:golang/github.com/libp2p/go-libp2p","ranges":["<0.27.4"],"fixed":["0.27.4"]}]},{"id":"GO-2023-2024","url":"https://osv.dev/vulnerability/GO-2023-2024","summary":"Out-of-memory vulnerability in github.com/libp2p/go-libp2p","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/libp2p/go-libp2p","purl":"pkg:golang/github.com/libp2p/go-libp2p","ranges":["<0.27.4"],"fixed":["0.27.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}