Vulnerability GHSA-jm57-r6vj-mwg9
Summary
Pion DTLS: Unbounded handshake cache allows remote memory exhaustion
Details
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
Related Vulnerabilities
Other vulnerabilities affecting the same packages