{"id":"CVE-2026-95859","published":"2026-10-16T15:19:04Z","modified":"2026-10-21T02:20:36Z","title":"libp2p-rust: Gossipsub GRAFT topics unbounded growth","vendor":"libp2p","product":"rust-libp2p","tier":"tail","description":{"text":"libp2p-rust is the official Rust language implementation of the libp2p networking stack. Prior to 0.49.5, Gossipsub GRAFT control-message handling unconditionally adds attacker-supplied topic hashes to connected_peer.topics without confirming that the peer previously subscribed to those topics. A remote unauthenticated peer that can reach a Gossipsub listener can repeatedly send novel GRAFT topics, causing cumulative per-peer memory growth that is not bounded by subscription filters, peer scoring, or per-message size limits. This can exhaust process memory and cause a denial of service. This issue is fixed in version 0.49.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00507,"percentile":0.3642,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-g3g5-x568-qvqx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libp2p/rust-libp2p/pull/6608","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/rust-libp2p/commit/51ed5f00e1b0620ded3444ecadf18477052148ea","tags":["x_refsource_MISC"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":7.28},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"libp2p","affectedVersions":[{"vendor":"libp2p","product":"rust-libp2p","versions":["< 0.49.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-21T02:20:19.474819Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"libp2p-gossipsub","vulnerableRanges":[">=0.0.0-0, <0.49.5"],"patched":["0.49.5"],"from":["RUSTSEC-2026-0536"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-102898","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-libp2p-rust-libp2p-cve-2026-33040","parents":[{"from":"CVE-2026-34219","to":"CVE-2026-95859","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:libp2p-gossipsub","fromFixed":"0.49.4","toFixed":"0.49.5","daysApart":199},{"kind":"same-code","provenance":"machine","files":["protocols/gossipsub/src/behaviour.rs"],"commits":["https://github.com/libp2p/rust-libp2p/commit/55e4a64630f66d55fec5955c8f9905413c5d0859","https://github.com/libp2p/rust-libp2p/commit/51ed5f00e1b0620ded3444ecadf18477052148ea"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-33040","published":"2026-03-20","fixed":"0.49.3","kev":false},{"cve":"CVE-2026-34219","published":"2026-03-31","fixed":"0.49.4","kev":false},{"cve":"CVE-2026-95859","published":"2026-10-16","fixed":"0.49.5","kev":false}],"package":"crates.io:libp2p-gossipsub"}}