{"id":"CVE-2023-40583","published":"2023-08-25T20:25:28Z","modified":"2024-10-02T14:45:16Z","title":"libp2p nodes vulnerable to OOM attack","vendor":"libp2p","product":"go-libp2p","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00952,"percentile":0.6218,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/libp2p/go-libp2p/security/advisories/GHSA-gcq9-qqwx-rgj3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libp2p/go-libp2p/commit/45d3c6fff662ddd6938982e7e9309ad5fa2ad8dd","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/go-libp2p/releases/tag/v0.27.4","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/go-libp2p/releases/tag/v0.27.7","tags":["x_refsource_MISC"]}],"priority":{"score":17.7,"factors":[{"name":"EPSS percentile","points":12.44},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"libp2p","affectedVersions":[{"vendor":"libp2p","product":"go-libp2p","versions":["< 0.27.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-10-02T14:44:58.191460Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/libp2p/go-libp2p","vulnerableRanges":["<0.27.4"],"patched":["0.27.4"],"from":["GHSA-gcq9-qqwx-rgj3","GO-2023-2024"],"provenance":"source"}],"summary":{"text":"The go-libp2p networking library, which is used by other tools, mishandles signed peer records so that data an attacker supplies is retained in a remote node's memory and never garbage collected. An unauthenticated attacker with network access can exploit this without user interaction, and it causes the affected node to run out of memory and crash, potentially silently over time.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:21Z"},"euvd":{"id":"EUVD-2023-2291","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-libp2p-go-libp2p-cve-2022-23486","parents":[{"from":"CVE-2022-23492","to":"CVE-2023-40583","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["p2p/protocol/identify/id.go"],"commits":["https://github.com/libp2p/go-libp2p/commit/15d7dfbf54264ead8e6f49ca658d79c90635e2de","https://github.com/libp2p/go-libp2p/commit/45d3c6fff662ddd6938982e7e9309ad5fa2ad8dd"],"basis":"rarely changed file"}]}]}}