# CVE-2026-33040: libp2p-rust: Gossipsub PRUNE.backoff Duration Overflow

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-03-18T12:00:00.000Z
- Modified: 2026-11-13T12:56:06.349Z
- Also known as: GHSA-gc42-3jg7-rxr2, RUSTSEC-2026-0535
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

libp2p-rust is the official rust language Implementation of the libp2p networking stack. In versions prior to 0.49.3, the Gossipsub implementation accepts attacker-controlled PRUNE backoff values and may perform unchecked time arithmetic when storing backoff state. A specially crafted PRUNE control message with an extremely large backoff (e.g. u64::MAX) can lead to Duration/Instant overflow during backoff update logic, triggering a panic in the networking state machine. This is remotely reachable over a normal libp2p connection and does not require authentication. Any application exposing a libp2p Gossipsub listener and using the affected backoff-handling path can be crashed by a network attacker that can reach the service port. The attack can be repeated by reconnecting and replaying the crafted control message. This issue has been fixed in version 0.49.3.

(As written by CVE List.)

## Affected

- libp2p rust-libp2p: < 0.49.3
- libp2p-gossipsub (crates.io): before 0.49.3; from 0.0.0-0 before 0.49.3
- protocol libp2p-gossipsub: before 0.49.3

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-gc42-3jg7-rxr2> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33040> (advisory)
- <https://github.com/libp2p/rust-libp2p> (package)
- <https://crates.io/crates/libp2p-gossipsub> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0535.html> (advisory)
- <https://github.com/libp2p/rust-libp2p/commit/84153a559bdbcb92a48413dd2a31035800cb882d> (web)

## Sources

- CVE List: [CVE-2026-33040](https://www.cve.org/CVERecord?id=CVE-2026-33040), CVE Terms of Use, modified 2026-03-20
- GitHub Advisory Database: [GHSA-gc42-3jg7-rxr2](https://github.com/advisories/GHSA-gc42-3jg7-rxr2), CC-BY-4.0, modified 2026-11-13
- RustSec Advisory Database: [RUSTSEC-2026-0535](https://rustsec.org/advisories/RUSTSEC-2026-0535.html), CC0-1.0, modified 2026-11-13
- NVD: [CVE-2026-33040](https://nvd.nist.gov/vuln/detail/CVE-2026-33040), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33040 · Whole record: https://cve.day/CVE-2026-33040.json · Rebuilt by cve.day 2026-11-25T22:59:16.285Z
