CVE-2026-135391: Pion DTLS: Oversized peer RSA keys allow excessive CPU consumption during DTLS handshakes
Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.0.0 until 3.1.13, peer certificates were parsed and their RSA public keys were passed to handshake signature and certificate-chain verification without an explicit modulus-size limit. A remote peer can provide a certificate with an unusually large attacker-chosen RSA modulus and an invalid signature; no corresponding private key or valid handshake signature is required to trigger the expensive operation. An RSA verification path must execute. A local ECDSA certificate does not prevent the peer from presenting an RSA certificate, and WebRTC deployments can be affected. Repeated or concurrent malicious handshakes can consume substantial CPU resources, delay legitimate connections, and reduce service availability. The issue is fixed in version 3.1.13.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Pion DTLSto a version that resolves this vulnerability.Fixed in 3.1.13
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using Pion DTLS versions from 2.0.0 through 3.1.12 are affected. Services that accept DTLS handshakes from remote or untrusted peers, including WebRTC deployments, can be exposed.
What does an attacker need to trigger the CPU-intensive processing?
An attacker only needs to present a certificate containing an unusually large RSA public-key modulus during a handshake. The certificate signature can be invalid; the attacker does not need the corresponding private key or a valid handshake signature.
Does using an ECDSA certificate locally prevent exploitation?
No. A peer can still present an RSA certificate even when the local certificate uses ECDSA, causing the affected RSA verification path to execute.
How can the impact be amplified?
Repeated or concurrent malicious DTLS handshakes can consume substantial CPU resources. This can delay legitimate connections and reduce service availability.
What version fixes the issue?
Upgrade Pion DTLS to version 3.1.13, which adds the fix.