libp2p-rendezvous
Affected
- introduced
0, fixed0.17.1(semver)
Fixed versions
0.17.1
Fix
- Fixed version
0.17.1cargo update -p libp2p-rendezvous --precise 0.17.1
Advisory
Also known as: CVE-2026-35457, RUSTSEC-2026-0527
libp2p-rendezvous: Unbounded rendezvous DISCOVER cookies enable remote memory exhaustion
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:
Impacts rendezvous nodes exposed to untrusted peers.
---
Possible Fixes
Bound cookie storage (MAX_COOKIES_TRACKED) with FIFO/expiry aware eviction.
Tradeoff: attacker can churn cookies and evict legitimate pagination state.
Encode pagination state in authenticated cookies instead of storing server-side state.
Tradeoff: more complex implementation.
Limit cookie creation per peer.
Tradeoff: requires peer tracking.
High Basis: The source's own band: HIGH
0, fixed 0.17.1 (semver)0.17.1
0.17.1cargo update -p libp2p-rendezvous --precise 0.17.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0