Pion DTLS: Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes
- CVE-2026-135393
- GHSA-qpgj-64qg-5m4r
- EUVD-2026-134216
Description
### Summary Pion DTLS could repeatedly process a client's certificate flight while waiting for the client's Finished message. A malicious client could withhold Finished and send additional handshake traffic, causing the server to repeat certificate processing and cryptographic verification for the same handshake. Repeated or concurrent attempts could consume excessive CPU resources and reduce service availability. Discovered by Anthropic's OSS Scanner, tracking ID `E9EALMAT`. ### Details The server's handshake state machine did not distinguish between successfully processing the client's certificate flight and completing the handshake. While waiting for Finished, additional incoming handshake traffic could cause the server to revisit cached Certificate, ClientKeyExchange, and CertificateVerify messages. This repeated work could include certificate parsing, handshake signature verification, and certificate-chain verification, depending on the configured authentication policy. ### Impact An attacker can make the server repeat expensive operations without completing a new handshake for each operation. This can consume CPU resources and delay legitimate connections. pion/webrtc applications are affected when operating as the DTLS server. Fixed by https://github.com/pion/dtls/commit/979ad79d by processing the client certificate flight once per handshake.
Text from the GitHub Advisory record.
Affected
pion dtls
- from 3.0.0 to before 3.1.13
- from 2.0.0 up to 2.2.12
- from 1.2.2 up to 1.5.4
github.com/pion/dtlsGo
- from 1.2.2, up to 1.5.4
github.com/pion/dtls/v2Go
- from 2.0.0, up to 2.2.12
github.com/pion/dtls/v3Go
- from 3.0.0, fixed in 3.1.13
github.com/pion/dtls/v4Go
- all versions, fixed in 4.0.0-rc.6
Product versions from the ENISA EUVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.