Vulnerability GHSA-v5hw-cv9c-rpg7

High Risk
HIGH RISK
CVSS Score: 8.2
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
7 months ago
April 04, 2026 at 06:34 AM UTC
libp2p-rendezvous: Unbounded rendezvous DISCOVER cookies enable remote memory exhaustion
<0.17.1
<0.17.1

Summary

libp2p-rendezvous: Unbounded rendezvous DISCOVER cookies enable remote memory exhaustion

Details

Summary

The rendezvous server stores pagination cookies without bounds. An unauthenticated peer can repeatedly issue DISCOVER requests and force unbounded memory growth.

Details

Pagination state is stored in:

HashMap<Cookie, HashSet<RegistrationId>>

On Message::Discover:

remote peer
→ DISCOVER
→ handle_request
→ registrations.get(...)
→ new cookie generated
→ cookie inserted into Registrations::cookies

There is no upper bound or eviction policy, so repeated DISCOVER requests grow this map indefinitely.

PoC

A reproduction test and minimal harness will be provided in a private fork in a follow-up comment.

Impact

Remote state amplification leading to memory exhaustion.

Properties:

  • etwork reachable
  • no authentication required
  • low attack complexity
  • protocol-compliant traffic

Impacts rendezvous nodes exposed to untrusted peers.

Impacted packages

Timeline

Published
7 months ago
April 04, 2026 at 06:34 AM UTC
Fixed (0.17.1)
7 months ago
April 02, 2026 at 07:42 PM UTC
Last Modified
3 hours ago
November 13, 2026 at 12:55 PM UTC