CVE-2026-135392: Pion DTLS: Unbounded handshake cache allows remote memory exhaustion
Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.1.4 until 3.1.13, the handshake cache copied and retained submitted messages without deduplicating entries, limiting the entry count, limiting total payload bytes, or stopping new insertions after handshake completion. A remote peer able to deliver suitable DTLS traffic can grow the cache through incoming handshake messages and repeated caching of outgoing retransmissions for the lifetime of the connection. The fragment reassembly buffer's separate size limit does not prevent this issue because completed messages are retained in the append-only handshake cache. Unbounded cache growth can exhaust application memory and cause a denial of service. The issue is fixed in version 3.1.13.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.1.13
Event History
Frequently Asked Questions
Which deployments are exposed to this denial-of-service issue?
Applications using go/github.com/pion/dtls versions from 2.1.4 up to, but not including, 3.1.13 are affected. Exposure requires a remote peer that can send suitable DTLS traffic to a connection.
What does an attacker need to do to exhaust memory?
The attacker needs to deliver suitable DTLS handshake traffic. Incoming handshake messages and repeated caching of outgoing retransmissions can grow the append-only handshake cache for the lifetime of the connection.
Does the fragment reassembly buffer's size limit mitigate this issue?
No. Completed messages are retained separately in the handshake cache, so the reassembly buffer limit does not prevent unbounded cache growth.
What is the remediation?
Upgrade go/github.com/pion/dtls to version 3.1.13, which fixes the issue.