{"id":"CVE-2026-34219","published":"2026-03-31T15:47:31Z","modified":"2026-03-31T17:34:57Z","title":"libp2p-gossipsub: Gossipsub PRUNE Backoff Heartbeat Instant Overflow","vendor":"libp2p","product":"rust-libp2p","tier":"tail","description":{"text":"libp2p-rust is the official rust language Implementation of the libp2p networking stack. Prior to version 0.49.4, the Rust libp2p Gossipsub implementation contains a remotely reachable panic in backoff expiry handling. After a peer sends a crafted PRUNE control message with an attacker-controlled, near-maximum backoff value, the value is accepted and stored as an Instant near the representable upper bound. On a later heartbeat, the implementation performs unchecked Instant + Duration arithmetic (backoff_time + slack), which can overflow and panic with: overflow when adding duration to instant. This issue is reachable from any Gossipsub peer over normal TCP + Noise + mplex/yamux connectivity and requires no further authentication beyond becoming a protocol peer. This issue has been patched in version 0.49.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/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.00596,"percentile":0.49428,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-617","name":"Reachable Assertion"}],"references":[{"url":"https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-xqmp-fxgv-xvq5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":9.89},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"libp2p","affectedVersions":[{"vendor":"libp2p","product":"rust-libp2p","versions":["< 0.49.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-31T17:34:49.301642Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"libp2p-gossipsub","vulnerableRanges":["<0.49.4",">=0.0.0-0, <0.49.4"],"patched":["0.49.4"],"from":["GHSA-xqmp-fxgv-xvq5","RUSTSEC-2026-0537"],"provenance":"source"}],"summary":{"text":"The rust-libp2p implementation of the Gossipsub protocol, prior to version 0.49.4, fails to guard against integer overflow in its PRUNE backoff expiry handling, where an attacker-supplied near-maximum backoff value is stored as an Instant and later added to a Duration without checks. An attacker who is a Gossipsub peer, reachable over the standard TCP, Noise and mplex/yamux connection stack, can send a crafted PRUNE message to trigger a panic on a subsequent heartbeat, requiring no authentication beyond being a protocol peer and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:45Z"},"euvd":{"id":"EUVD-2026-17521","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-libp2p-rust-libp2p-cve-2026-33040","parents":[{"from":"CVE-2026-33040","to":"CVE-2026-34219","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-xqmp-fxgv-xvq5","via":"reference","url":"https://github.com/advisories/GHSA-gc42-3jg7-rxr2"},{"kind":"version-step","provenance":"source","package":"crates.io:libp2p-gossipsub","fromFixed":"0.49.3","toFixed":"0.49.4","daysApart":11},{"kind":"same-code","provenance":"machine","files":["protocols/gossipsub/src/backoff.rs"],"commits":["https://github.com/libp2p/rust-libp2p/commit/84153a559bdbcb92a48413dd2a31035800cb882d","https://github.com/libp2p/rust-libp2p/commit/55e4a64630f66d55fec5955c8f9905413c5d0859"],"basis":"shared function","functions":["BackoffStorage"]},{"kind":"similar","provenance":"machine","score":0.45,"basis":"same product + CWE + description similarity"}]}],"children":[{"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"}}