All posts

Critical vulnerability

Critical authentication bypass in github.com/pion/dtls/v2 (CVE-2026-135389)

Authentication bypass in github.com/pion/dtls/v2 · Go

CVE-2026-135389

Pion DTLS: Client authentication bypass through premature DTLS 1.2 session caching

Severity
Critical 9.1
Published
3 Dec 2026
Fixed in
3.1.14, 4.0.0-rc.6
Weakness
Improper authentication (CWE-287)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data

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

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.

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.
SoftwareAffected versions
github.com/pion/dtls/v2Go
  • From 2.1.0 up to 2.2.12
github.com/pion/dtls/v3Go
  • Every version before 3.1.14
github.com/pion/dtls/v4Go
  • Every version before 4.0.0-rc.6
Everything about CVE-2026-135389

From NVD, the CVE Program, OSV.dev with the GitHub Advisory Database, WPVulnerability, WordPress's security advisories and CISA's Known Exploited Vulnerabilities catalog, as they stood when this was written. Each vulnerability's own page has its latest rating and fix. This product uses the NVD API but is not endorsed or certified by the NVD.