Pion DTLS: Client authentication bypass through premature DTLS 1.2 session caching
- CVE-2026-135389
- GHSA-hhpj-h56m-9f2p
- EUVD-2026-134207
Description
### Summary Pion DTLS saves resumable sessions before the original handshake has completed client authentication. An unauthenticated attacker can create an unfinished session and then resume it to bypass required client-certificate authentication. This doesn't affect webrtc users. Discovered by Anthropic's OSS Scanner `ANT-2026-8ECSI13S` ### Details Affected servers must enable a SessionStore, negotiate a certificate-based cipher suite, and require client certificates through RequireAnyClientCert or RequireAndVerifyClientCert. The same mechanism can bypass a rejecting VerifyConnection callback. The server stores the session ID and master secret after processing ClientKeyExchange, before receiving and validating the client's Finished message and enforcing the final authentication checks. ### Impact An attacker can omit the client Certificate message, send ClientKeyExchange, and leave the handshake unfinished. Because the attacker participated in the key exchange, it knows the resulting master secret. It can then open another connection and resume the cached session. The abbreviated handshake validates possession of that secret without enforcing the original client-authentication requirements. fixed by https://github.com/pion/dtls/commit/ce84b979bcb5449727b3ea5c57add4e1edb33284
Text from the GitHub Advisory record.
Affected
pion dtls
- from 2.1.0 up to 2.2.12
- from 3.0.0 to before 3.1.14
github.com/pion/dtls/v2Go
- from 2.1.0, up to 2.2.12
github.com/pion/dtls/v3Go
- all versions, fixed in 3.1.14
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.