CVE-2026-135389 in DTLS
Summary
by MITRE • 11/24/2026
Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.1.0 until 3.1.14, a server with a SessionStore saved the session ID and master secret after ClientKeyExchange, before receiving a valid Finished message and before enforcing the configured client-authentication checks. A remote client can omit its Certificate message, send ClientKeyExchange, leave the first handshake unfinished, and then resume the cached session using the master secret it learned during key exchange. The server must use a SessionStore and negotiate a certificate-based cipher suite. The attack can bypass client certificates required through RequireAnyClientCert or RequireAndVerifyClientCert, or a rejecting VerifyConnection callback. WebRTC users are not affected. The abbreviated handshake can allow unauthorized access to application data. The issue is fixed in version 3.1.14.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/29/2026
The vulnerability identified within the Pion DTLS library represents a critical flaw in the implementation of the Datagram Transport Layer Security protocol, specifically affecting versions from 2.1.0 through 3.1.14. This issue stems from an incorrect ordering of operations during the TLS handshake process when server-side session resumption is enabled via a configured SessionStore. In a standard DTLS or TLS handshake involving client authentication, the server must verify the client's certificate and validate its signature before considering the connection secure and allowing access to application data. However, in this flawed implementation, the server prematurely caches the session ID and master secret immediately after receiving the ClientKeyExchange message from the client. This caching occurs prior to the reception of a valid Finished message and crucially before any enforcement of configured client-authentication checks such as RequireAnyClientCert or RequireAndVerifyClientCert policies.
The technical root cause lies in the premature state transition where the server assumes the handshake is sufficiently complete for session storage purposes, ignoring the requirement that authentication must be fully validated first. This design flaw allows a remote attacker to exploit the abbreviated handshake mechanism inherent in TLS resumption features. By omitting its Certificate message entirely during the initial connection attempt, an attacker can send only the ClientKeyExchange and then abruptly terminate the connection without completing the full handshake sequence. Because the server has already cached the session data including the master secret derived from that incomplete exchange, it associates this partial state with a specific session ID.
Subsequently, when the same client initiates a new connection using the abbreviated handshake mode and presents the previously obtained session ID, the server retrieves the stored master secret to resume the session without re-verifying the client's identity or requiring a fresh certificate validation. This effectively bypasses all mandatory client authentication mechanisms configured on the server side. The attacker can thus establish an encrypted channel with application data access despite never having provided valid credentials in either connection attempt. This behavior constitutes a severe authorization bypass, allowing unauthorized entities to impersonate legitimate clients by leveraging the stateful nature of session resumption against its own security controls.
From a classification perspective, this vulnerability aligns closely with CWE-287 Improper Authentication and CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization if viewed through the lens of race conditions in state management, though it is more accurately described as CWE-16 Configuration Error due to incorrect implementation logic. In terms of offensive security frameworks such as MITRE ATT&CK, this technique maps to T1078 Valid Accounts and specifically leverages session hijacking or misuse of authentication mechanisms to gain unauthorized access. The impact is particularly severe for applications relying on DTLS for secure communication where mutual authentication is a strict requirement, potentially leading to data exfiltration, privilege escalation within the application layer, and complete compromise of confidentiality guarantees intended by the protocol design.
It is important to note that WebRTC users are generally not affected by this specific vulnerability vector because their typical usage patterns do not rely on server-side session resumption with certificate-based cipher suites in a manner that exposes this particular code path. However, any service utilizing Pion DTLS directly for custom protocols or applications requiring strict client authentication must treat this as critical. The operational impact includes the potential for unauthorized access to sensitive data transmitted over these connections and the erosion of trust in mutual TLS implementations.
The recommended mitigation is straightforward: organizations running affected versions must upgrade immediately to version 3.1.14 or later, where the logic has been corrected to ensure that session caching only occurs after successful completion of all authentication steps including verification of the Finished message and validation of client certificates. Until an upgrade can be performed, administrators should consider disabling server-side session resumption features if they are not strictly necessary for performance optimization, thereby removing the attack surface entirely by preventing the storage of incomplete handshake states that could be exploited later.