Skip to main content

CVE-2026-35405

HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-04-04 https://github.com/libp2p/rust-libp2p GHSA-cqfx-gf56-8x59
7.5
CVSS 3.1 · Vendor: https://github.com/libp2p/rust-libp2p
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to libp2p-rendezvous server
  2. Delivery
    Submit register requests with unique namespaces
  3. Exploit
    Server allocates memory for each namespace
  4. Execution
    Repeat requests in loop
  5. Persist
    Exhaust server memory
  6. Impact
    Process crashes from OOM

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions — remote unauthenticated exploitation against any libp2p-rendezvous server. Attacker sends unlimited namespace registration requests over the network, causing out-of-memory denial of service. No authentication, user interaction, or special configuration required.

Impact

This vulnerability presents elevated real-world risk despite no confirmed active exploitation (CISA KEV). The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates trivial exploitation: network-accessible, low complexity, requiring no authentication or user interaction. Publicly available exploit code exists, demonstrated to register 10,000 unique namespaces from a single peer with 100% acceptance rate and measurable memory growth (18MB to 28MB baseline). The attack scales linearly with sybil peers-100 malicious peers yield ~1GB consumption, 1,000 peers cause server termination. SSVC framework signals high priority: exploitation is straightforward and automatable (simple loop construct), technical impact is partial (availability-only denial of service), and the barrier to exploitation is minimal. Rendezvous servers are typically well-known public infrastructure nodes, making them high-value targets where disruption affects entire dependent peer networks. The 72-hour persistence window amplifies impact, as temporary attacks create lasting resource consumption. While EPSS data is unavailable, the combination of public POC, zero authentication requirements, and critical infrastructure role warrants immediate remediation priority for any deployment running libp2p-rendezvous server components.

Exploit ScenarioDerived

An attacker identifies a public libp2p rendezvous server by scanning for nodes advertising rendezvous protocol support or through network enumeration of known libp2p deployments. Without requiring any authentication, the attacker connects as a standard libp2p peer and initiates a registration loop, submitting REGISTER requests for sequentially unique namespaces (e.g., 'attack-00000000' through 'attack-00099999'). Each request is accepted, allocating memory for BiMap entries, HashMap records, and heap-allocated futures with 72-hour lifetimes. With publicly available exploit code (rzv-flood.rs POC), a single attacker-controlled peer can exhaust server memory within minutes. Scaling the attack with 100-1,000 sybil peers on commodity infrastructure triggers out-of-memory crashes, rendering the rendezvous server inoperable and disrupting peer discovery for all dependent clients.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 04, 2026

Unbounded namespace registration in libp2p-rendezvous allows remote unauthenticated attackers to trigger out-of-memory conditions on rendezvous servers. The Rust implementation accepts unlimited unique namespace registrations per peer with 72-hour TTLs, enabling resource exhaustion via repeated REGISTER messages. Confirmed publicly available exploit code exists. CVSS 7.5 (High) reflects network accessibility and lack of authentication barriers, while the straightforward attack vector (simple loop of registration requests) presents immediate risk to public rendezvous nodes critical for peer discovery in libp2p networks.

RemediationAI

Apply vendor-released patches by upgrading to fixed versions of libp2p-rendezvous as specified in the GitHub security advisory at https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-cqfx-gf56-8x59. The recommended fix involves adding a max_registrations_per_peer configuration parameter to the Config structure and implementing count validation at the beginning of the Registrations::add() method before allocating memory for new entries. Until patches are applied, implement network-level rate limiting on REGISTER message types per peer IP address, reduce MAX_TTL configuration to minimize resource persistence windows, and monitor rendezvous server memory consumption for anomalous growth patterns. Deploy rendezvous servers behind reverse proxies or load balancers capable of enforcing per-peer connection and request rate limits. For production environments, consider implementing allowlists of trusted peer IDs if the use case permits authenticated rendezvous participation.

Affected Packages

cargo libp2p-rendezvous fix: 0.17.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in cargo

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libp2p-rendezvous implements a peer discovery protocol where nodes register with namespace identifiers on rendezvous servers. The vulnerability resides in the Registrations::add() method within protocols/rendezvous/src/server.rs, which uses a BiMap keyed on (PeerId, Namespace) tuples. While duplicate namespace registrations from the same peer are prevented, the implementation enforces only namespace string length limits (MAX_NAMESPACE = 255 bytes) without any per-peer registration count restrictions. Each unique namespace registration allocates memory across three data structures: registrations_for_peer BiMap, registrations HashMap, and next_expiry FuturesUnordered collection with heap-allocated BoxFuture instances. The 72-hour maximum TTL (MAX_TTL) causes entries to persist even after peer disconnection, as cleanup occurs only upon TTL expiration. This maps to CWE-770 (Allocation of Resources Without Limits or Throttling), a common anti-pattern in network services lacking admission control.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/libp2p/rust-libp2p) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (https://github.com/libp2p/rust-libp2p) · only source for this CVE.

CVSS VectorVendor: https://github.com/libp2p/rust-libp2p

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Apr 04, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 04, 2026 - 06:33 nvd
HIGH 7.5

DescriptionCVE.org

Summary

Thelibp2p-rendezvous server has no limit on how many namespaces a single peer can register. A malicious peer can repeatedly register unique namespaces in a loop, and the server accepts the requests, allocating memory for each registration without pushback. If an attacker continues submitting malicous requests for long enough, (or with multiple sybil peers) the server process crashes due to OOM.

No auth is required; therefore, any peer on the network can do this.

Details

the bug is in Registrations::add() inside protocols/rendezvous/src/server.rs.

the store uses a BiMap keyed on (PeerId, Namespace) so yes, a peer can't register the *same* namespace twice. but there's nothing stopping it from registering 10,000 *different* namespaces. each unique one gets its own entry in:

  • registrations_for_peer (BiMap)
  • registrations (HashMap)
  • next_expiry (FuturesUnordered a new heap-allocated BoxFuture per registration)

namespace strings are only validated for length (MAX_NAMESPACE = 255), not count. there's no max_registrations_per_peer anywhere in Config or the rest of the codebase.

making it worse MAX_TTL = 72 hours. so every registration just sits there for up to 3 days. disconnecting doesn't clean anything up either, entries only go away when the TTL fires.

protocols/rendezvous/src/server.rs
  └── Registrations::add()   ← no per-peer count check anywhere

protocols/rendezvous/src/lib.rs
  ├── MAX_NAMESPACE = 255    ← length capped, count is not
  └── MAX_TTL = 72h          ← entries persist a long time

fix would be adding something like max_registrations_per_peer to Config and checking it at the top of add() before inserting anything.

PoC

tested on libp2p v0.56.1, built from source.

step 1 - start the rendezvous server (uses the example from the repo):

bash
cargo run --manifest-path examples/rendezvous/Cargo.toml --bin rendezvous-example

step 2 - run the flood client (attached as rzv-flood.rs):

bash
cargo run --manifest-path examples/rendezvous/Cargo.toml --bin rzv-flood

it connects as a single peer and registers 10,000 unique namespaces (flood-00000000 through flood-00009999), chaining each registration on the confirmed Registered event from the previous one.

server accepted every single one. not one rejection.

memory on the server side (via ps aux RSS column):

baseline:       ~18 MB
mid flood:      ~26 MB
after 10k regs: ~28 MB

that's from one peer. scale to 100 sybil peers doing the same thing and you're looking at ~1GB. 1000 peers and the server is dead.

<img width="1032" height="124" alt="image" src="https://github.com/user-attachments/assets/f778f179-2aa1-4485-940c-25e218733fa8" />

*server RSS climbing during the flood*

<img width="553" height="760" alt="image" src="https://github.com/user-attachments/assets/691b0f52-dda0-443f-a3c2-98c8c6336f2f" />

*10,000 registrations confirmed, zero rejected*

Impact

any node running libp2p-rendezvous server-side is affected. rendezvous servers are typically well-known, publicly reachable nodes taking one down disrupts peer discovery for all clients depending on it. any rust-libp2p based project that deploys a rendezvous point is at risk.

no special position on the network needed. no crypto work. just open a connection and send REGISTER in a loop.

Executive ViewAI

Why It Matters

CVE-2026-35405 affects libp2p-rendezvous servers, allowing remote attackers to exhaust memory resources through unlimited namespace registration without authentication, potentially disrupting peer discovery infrastructure for organizations operating libp2p networks. Public exploit code availability accelerates attack feasibility, creating immediate risk for any deployment relying on rendezvous services for distributed application connectivity.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement per-peer registration rate limiting at network/application layer to restrict REGISTER message frequency; (2) Deploy memory utilization monitoring with automated alerting and service restart mechanisms; (3) Configure firewall/load balancer IP-based rate limiting to restrict registration request volume; (4) Restrict rendezvous server network access to trusted peer networks only; (5) Monitor namespace registrations and implement administrative quota enforcement per peer identity.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:rust/libp2p-rendezvous

Related Vulnerabilities in libp2p-rendezvous DoS Vulnerabilities

View all 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy