Advisory

RUSTSEC-2026-0535

Also known as: CVE-2026-33040, GHSA-gc42-3jg7-rxr2

Summary

Remote panic from an oversized PRUNE backoff

Details

When a peer sent a PRUNE control message, the backoff it asked for was turned into an expiry time with Instant::now() + Duration::from_secs(backoff). That addition panics on overflow, so a peer that sends a PRUNE with a very large backoff, such as u64::MAX, crashes the node. No authentication is needed beyond an ordinary libp2p connection with the gossipsub protocol, and the attacker can repeat it after every restart.

The fix uses Instant::checked_add in BackoffStorage::update_backoff and ignores a backoff that would overflow. It is in 0.49.3.

Severity

Not rated by the source.

Dates

Published
2026-03-18 12:00 UTC
Modified
2026-11-13 12:45 UTC

Affected packages and fixes

libp2p-gossipsub

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.49.3 (semver)

Fixed versions

0.49.3

Fix

  • Fixed version 0.49.3
    cargo update -p libp2p-gossipsub --precise 0.49.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences