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.
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.
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
{
"cwe_ids": [
"CWE-770"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-02T21:41:08Z",
"nvd_published_at": "2026-11-24T17:18:24Z",
"severity": "HIGH"
}