Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-33040: CWE-190: Integer Overflow or Wraparound in libp2p rust-libp2p

0
High
VulnerabilityCVE-2026-33040cvecve-2026-33040cwe-190
Published: Fri Mar 20 2026 (03/20/2026, 05:46:42 UTC)
Source: CVE Database V5
Vendor/Project: libp2p
Product: rust-libp2p

Description

CVE-2026-33040 is a high-severity integer overflow vulnerability in the rust-libp2p Gossipsub implementation prior to version 0. 49. 3. It arises from unchecked time arithmetic when processing attacker-controlled PRUNE backoff values, allowing a remote unauthenticated attacker to cause a panic and crash the networking state machine. Exploitation requires only network access to the libp2p Gossipsub listener and no user interaction. The vulnerability can be repeatedly triggered by reconnecting and replaying crafted PRUNE control messages with extremely large backoff values. This can lead to denial of service for applications relying on rust-libp2p for peer-to-peer networking. The issue has been fixed in version 0. 49. 3.

AI-Powered Analysis

AILast updated: 03/20/2026, 06:23:47 UTC

Technical Analysis

The vulnerability CVE-2026-33040 affects the rust-libp2p library, specifically its Gossipsub protocol implementation used for peer-to-peer networking. In versions prior to 0.49.3, the Gossipsub code accepts PRUNE control messages containing backoff values that are attacker-controlled. The backoff value is used to determine how long a peer should be excluded from gossiping after being pruned. However, the implementation performs unchecked arithmetic on these backoff values when updating internal timing state, using Rust's Duration and Instant types. If an attacker sends a PRUNE message with an extremely large backoff value (e.g., the maximum 64-bit unsigned integer), this causes an integer overflow or wraparound in the time calculations. The overflow triggers a panic in the networking state machine, crashing the affected application. This vulnerability is remotely exploitable over a standard libp2p connection without requiring authentication or user interaction. An attacker with network access to the libp2p Gossipsub listener can repeatedly crash the service by reconnecting and sending crafted PRUNE messages. This results in a denial of service condition for applications relying on rust-libp2p for their peer-to-peer communication. The issue was addressed and fixed in rust-libp2p version 0.49.3 by adding proper validation and bounds checking on the backoff values to prevent overflow.

Potential Impact

The primary impact of CVE-2026-33040 is a denial of service (DoS) condition caused by application crashes. Applications that expose a libp2p Gossipsub listener and use vulnerable rust-libp2p versions are susceptible to remote crashes triggered by unauthenticated attackers. This can disrupt peer-to-peer communication, degrade service availability, and potentially impact dependent systems or users relying on decentralized networks. Since libp2p is widely used in blockchain, decentralized storage, and distributed applications, this vulnerability could affect critical infrastructure components in these ecosystems. The ease of exploitation (no authentication or user interaction required) and the ability to repeatedly trigger crashes amplify the risk. While no known exploits are reported in the wild yet, the high CVSS score (8.7) reflects the severity and potential for impactful attacks. Organizations using rust-libp2p in production should consider this a significant threat to service stability and availability.

Mitigation Recommendations

To mitigate this vulnerability, organizations should upgrade rust-libp2p to version 0.49.3 or later, where the overflow issue is fixed. If immediate upgrade is not possible, implement network-level controls to restrict access to libp2p Gossipsub listener ports, limiting exposure to untrusted networks and potential attackers. Monitoring and alerting on unexpected connection attempts or malformed PRUNE control messages can help detect exploitation attempts. Additionally, consider implementing application-level rate limiting or connection throttling to reduce the impact of repeated attack attempts. Developers should audit any custom handling of backoff or timing values in their libp2p integrations to ensure proper validation and error handling. Finally, maintain awareness of updates from the rust-libp2p project and apply security patches promptly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-17T18:10:50.210Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69bce490e32a4fbe5f33889e

Added to database: 3/20/2026, 6:09:20 AM

Last enriched: 3/20/2026, 6:23:47 AM

Last updated: 3/20/2026, 7:30:28 AM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses