Affected versions
Version ranges need review.
- Affected versions
- >=0.0.0-0 <0.17.1
- Fixed version
- 0.17.1
- Affected versions
- < 0.17.1
- Fixed version
- 0.17.1
Exploitation
Description
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.
Possible Fixes
Global cap + eviction
Bound cookie storage (MAX_COOKIES_TRACKED) with FIFO/expiry aware eviction.
Tradeoff: attacker can churn cookies and evict legitimate pagination state.
Stateless cookies
Encode pagination state in authenticated cookies instead of storing server-side state.
Tradeoff: more complex implementation.
Rate limiting / per-peer quotas
Limit cookie creation per peer.
Tradeoff: requires peer tracking.
Links
- https://crates.io/crates/libp2p-rendezvous
- https://github.com/advisories/GHSA-v5hw-cv9c-rpg7
- https://github.com/libp2p/rust-libp2p
- https://github.com/libp2p/rust-libp2p/commit/8fde2dc0fae8b433f97c6cdf9ee24f59d51a359c
- https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-v5hw-cv9c-rpg7
- https://nvd.nist.gov/vuln/detail/CVE-2026-35457
- https://rustsec.org/advisories/RUSTSEC-2026-0527.html
Credits
- milaforge

