/

CVE-2026-135389

Severity:

CRITICAL RISK

(9.1)

Client Authentication Bypass (CWE-287) in Pion DTLS

CVE-2026-135389

Awaiting Analysis

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-287

Impact:

Unauthorized access to application data

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Pion DTLS can cache a session before a client completes the handshake and passes configured certificate-authentication checks. A remote client who can reach a suitably configured server may resume that session and gain unauthorized access to application data.

Affected context

The issue affects Pion DTLS versions from 2.1.0 up to, but not including, 3.1.14 when a server uses a SessionStore and negotiates a certificate-based cipher suite. It is relevant when client authentication is required through RequireAnyClientCert, RequireAndVerifyClientCert, or a rejecting VerifyConnection callback. WebRTC users are not affected.

Exploit preconditions

  • Attack surface: A reachable Pion DTLS server
  • Required access: The ability to connect as a remote client; valid client credentials may not be required when the affected authentication checks are bypassed
  • Configuration conditions: The server uses a SessionStore and negotiates a certificate-based cipher suite
  • Trigger point: Session resumption after an initial handshake is left unfinished
  • Why exploitation is possible: The server stores the session ID and master secret before receiving a valid Finished message and enforcing configured client-authentication checks

Why this happens

The server commits session state before confirming that the handshake has completed and the peer has passed the configured authentication checks. This premature trust in an unauthenticated connection can allow a client to resume a cached session without satisfying the expected certificate requirements, mapping to CWE-287: Improper Authentication.

Potential impact

  • A client may bypass configured certificate-authentication requirements
  • An unauthorized client could gain access to application data through an abbreviated handshake
  • Applications relying on DTLS client authentication may make decisions based on an unauthenticated peer

General mitigation guidance

Defensive patterns focus on ensuring authentication and handshake completion precede trust in a session.

  • Create or save resumable session state only after successful handshake completion and all configured authentication checks
  • Bind resumable sessions to the authentication outcome and relevant security context
  • Fail closed when client authentication is required but not successfully completed
  • Limit the privileges and data access available to DTLS-connected clients
  • Review session-resumption behavior alongside authentication policy whenever DTLS configuration changes

How teams detect issues like this

  • Review code paths that store or restore session state before handshake completion or peer authentication
  • Use static analysis and code review checks to identify session-cache writes that precede Finished-message verification or authentication callbacks
  • Test that incomplete handshakes and clients that fail configured authentication cannot establish resumed sessions
  • Monitor for resumed sessions that lack an associated successful authentication result
  • Enforce policies requiring authentication checks to complete before application data is accepted

Sources

SourceLink
github.comgithub.com/pion/dtls/commit/410ac0ef28df49757d3a695c10dda75137e1dbf2
github.comgithub.com/pion/dtls/commit/ce84b979bcb5449727b3ea5c57add4e1edb33284
github.comgithub.com/pion/dtls/pull/1234
github.comgithub.com/pion/dtls/releases/tag/v3.1.14
github.comgithub.com/pion/dtls/releases/tag/v4.0.0-rc.6
github.comgithub.com/pion/dtls/security/advisories/GHSA-hhpj-h56m-9f2p

Frequently asked

questions

Yes, under the required configuration conditions, a remote client that can reach the DTLS server may be able to exploit the issue.

Not necessarily. The issue can bypass configured client-certificate requirements when the server uses a SessionStore and negotiates a certificate-based cipher suite.

Do not make a session resumable until the handshake has completed and all required authentication checks have succeeded.

Treat session creation and resumption as security-sensitive operations, bind sessions to verified authentication state, and test that incomplete or unauthenticated handshakes cannot reach protected application data.

Find out what's already
exploitable in your codebase.