CVE-2026-95859 Details
Description
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.
A denial-of-service vulnerability has been identified in the libp2p Rust implementation of the Gossipsub protocol, prior to version 0.49.5. The issue arises because the GRAFT control message handling adds topic hashes supplied by remote peers to the recipient's topic list without verifying if the peer had previously subscribed to those topics. This flaw allows an unauthenticated peer to send new GRAFT topics repeatedly, causing unbounded memory growth per peer, which can exhaust process memory and disrupt service. The vulnerability is present in any application that exposes a libp2p Gossipsub listener and can be exploited by a network attacker who can reach the service port.
Users should upgrade to libp2p Gossipsub version 0.49.5 or later, which addresses the vulnerability by removing the unconditional insertion of GRAFT topics into the per-peer topic set without verification. The patched version also changes the default topic subscription filter to limit the number of subscribed topics, preventing unbounded growth from GRAFT messages.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 16, 2026CISA-ADP
Assessed Oct 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/libp2p/rust-libp2p/commit/51ed5f00e1b0620ded3444ecadf18477052148ea | [email protected] | Source CodeVendor |
| https://github.com/libp2p/rust-libp2p/pull/6608 | [email protected] | Source CodeVendor |
| https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-g3g5-x568-qvqx | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libp2p-rust-libp2p | < 0.49.5 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 21, 2026 | CVE Modified | CISA-ADP |
| Oct 16, 2026 | New CVE Received | [email protected] |
Volerion