Pion DTLS: Unbounded handshake cache allows remote memory exhaustion
- CVE-2026-135392
- GHSA-jm57-r6vj-mwg9
Description
### Summary Pion 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. Discovered by Anthropic's OSS Scanner, tracking ID `AMMUN4CQ`. ### Details The 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. Memory growth could occur through incoming handshake messages and repeated caching of outgoing handshake retransmissions. Completing the handshake did not stop further cache insertions. The fragment reassembly buffer's size limit did not prevent this vulnerability: completed messages were moved into a separate cache whose aggregate size was unrestricted. ### Impact An attacker able to deliver suitable DTLS traffic to an affected connection could exhaust application memory and cause a denial of service. Fixed by https://github.com/pion/dtls/commit/f444d0825ab34fed4b210607fa802dcf1edaf51f
Text from the GitHub Advisory record.
Affected
github.com/pion/dtls/v2Go
- from 2.1.4, up to 2.2.12
github.com/pion/dtls/v3Go
- from 3.0.0, fixed in 3.1.13
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.