{"id":"CVE-2026-35457","aliases":["CVE-2026-35457","GHSA-v5hw-cv9c-rpg7","RUSTSEC-2026-0527"],"related":[],"kind":"vulnerability","state":"published","title":"libp2p-rust has unbounded rendezvous DISCOVER cookies enable remote memory exhaustion","summary":"libp2p-rust is the official rust language Implementation of the libp2p networking stack. Prior to 0.17.1, the rendezvous server stores pagination cookies without bounds. An unauthenticated peer can repeatedly issue DISCOVER requests and force unbounded memory growth. This vulnerability is fixed in 0.17.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"libp2p-rust is the official rust language Implementation of the libp2p networking stack. Prior to 0.17.1, the rendezvous server stores pagination cookies without bounds. An unauthenticated peer can repeatedly issue DISCOVER requests and force unbounded memory growth. This vulnerability is fixed in 0.17.1.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe rendezvous server stores pagination cookies without bounds. An unauthenticated peer can repeatedly issue `DISCOVER` requests and force unbounded memory growth.\n\n### Details\n\nPagination state is stored in:\n\n```rs\nHashMap<Cookie, HashSet<RegistrationId>>\n```\n\nOn `Message::Discover`:\n\n```\nremote peer\n→ DISCOVER\n→ handle_request\n→ registrations.get(...)\n→ new cookie generated\n→ cookie inserted into Registrations::cookies\n```\n\nThere is **no upper bound or eviction policy**, so repeated DISCOVER requests grow this map indefinitely.\n\n\n### PoC\nA reproduction test and minimal harness will be provided in a private fork in a follow-up comment.\n\n### Impact\n\n**Remote state amplification leading to memory exhaustion.**\n\n\nProperties:\n\n- etwork reachable\n- no authentication required\n- low attack complexity\n- protocol-compliant traffic\n\nImpacts rendezvous nodes exposed to untrusted peers.\n---\n\n### Possible Fixes\n\n1. **Global cap + eviction**\n\nBound cookie storage (`MAX_COOKIES_TRACKED`) with FIFO/expiry aware eviction.  \nTradeoff: attacker can churn cookies and evict legitimate pagination state.\n\n2. **Stateless cookies**\n\nEncode pagination state in authenticated cookies instead of storing server-side state.  \nTradeoff: more complex implementation.\n\n3. **Rate limiting / per-peer quotas**\n\nLimit cookie creation per peer.  \nTradeoff: requires peer tracking.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Each DISCOVER request to a rendezvous server creates a pagination cookie, which the server kept in a map together with the registrations already returned for it. Entries were never evicted or capped, so an unauthenticated peer sending ordinary DISCOVER requests can make the server's memory grow without bound.\n\nThe fix keeps cookies in a fixed-size LRU cache (10,000 entries by default, configurable through `Config`). It is in 0.17.1.","format":"markdown","source":"rustsec"}],"published":"2026-04-02T12:00:00.000Z","modified":"2026-11-13T12:55:33.337Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":8.2,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":8.2,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 0.17.1","status":"affected"}],"vendor":"libp2p","product":"rust-libp2p","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.17.1"}],"ecosystem":"crates.io","package":"libp2p-rendezvous","purl":"pkg:cargo/libp2p-rendezvous","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.17.1"}],"ecosystem":"crates.io","package":"libp2p-rendezvous","purl":"pkg:cargo/libp2p-rendezvous","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.17.1"}],"vendor":"protocol","product":"libp2p","cpe":"cpe:2.3:a:protocol:libp2p:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/libp2p/rust-libp2p/security/advisories/GHSA-v5hw-cv9c-rpg7","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35457","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/libp2p/rust-libp2p","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/libp2p-rendezvous","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0527.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/libp2p/rust-libp2p/commit/8fde2dc0fae8b433f97c6cdf9ee24f59d51a359c","tags":["web"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-04-07T17:53:22.542Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35457","url":"https://www.cve.org/CVERecord?id=CVE-2026-35457","licence":"CVE Terms of Use","modified":"2026-04-07T17:53:37.355Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v5hw-cv9c-rpg7","url":"https://github.com/advisories/GHSA-v5hw-cv9c-rpg7","licence":"CC-BY-4.0","modified":"2026-11-13T12:55:33.337Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0527","url":"https://rustsec.org/advisories/RUSTSEC-2026-0527.html","licence":"CC0-1.0","modified":"2026-11-13T12:45:06.396Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35457","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35457","licence":"Public domain","modified":"2026-06-17T10:40:37.773Z"}],"updatedAt":"2026-11-25T22:59:18.103Z","epss":{"score":0.00257,"percentile":0.1854,"date":"2026-12-01T12:00:22.000Z"}}