{"id":"GHSA-jm57-r6vj-mwg9","summary":"Pion DTLS: Unbounded handshake cache allows remote memory exhaustion","details":"### Summary\n\nPion DTLS retained handshake messages in an append-only cache without a limit on entry count or total memory consumption. The cache continued accepting entries after handshake completion.\n\nDiscovered by Anthropic's OSS Scanner, tracking ID `AMMUN4CQ`.\n\n### Details\n\nThe handshake cache copied and retained each submitted message without deduplicating entries or enforcing a memory budget. Cached messages remained allocated for the lifetime of the connection.\n\nMemory growth could occur through incoming handshake messages and repeated caching of outgoing handshake retransmissions. Completing the handshake did not stop further cache insertions.\nThe fragment reassembly buffer's size limit did not prevent this vulnerability: completed messages were moved into a separate cache whose aggregate size was unrestricted.\n\n### Impact\n\nAn attacker able to deliver suitable DTLS traffic to an affected connection could exhaust application memory and cause a denial of service. \n\nFixed by https://github.com/pion/dtls/commit/f444d0825ab34fed4b210607fa802dcf1edaf51f","aliases":["CVE-2026-135392"],"modified":"2026-12-02T21:45:07.542157488Z","published":"2026-12-02T21:41:08Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-12-02T21:41:08Z","nvd_published_at":"2026-11-24T17:18:24Z","cwe_ids":["CWE-770"]},"references":[{"type":"WEB","url":"https://github.com/pion/dtls/security/advisories/GHSA-jm57-r6vj-mwg9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135392"},{"type":"WEB","url":"https://github.com/pion/dtls/pull/1229"},{"type":"WEB","url":"https://github.com/pion/dtls/commit/f444d0825ab34fed4b210607fa802dcf1edaf51f"},{"type":"PACKAGE","url":"https://github.com/pion/dtls"},{"type":"WEB","url":"https://github.com/pion/dtls/releases/tag/v3.1.13"}],"affected":[{"package":{"name":"github.com/pion/dtls/v3","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v3"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0"},{"fixed":"3.1.13"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-jm57-r6vj-mwg9/GHSA-jm57-r6vj-mwg9.json"}},{"package":{"name":"github.com/pion/dtls/v2","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.1.4"},{"last_affected":"2.2.12"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-jm57-r6vj-mwg9/GHSA-jm57-r6vj-mwg9.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}