CVE-2026-135388 in DTLS
Summary
by MITRE • 11/24/2026
Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.0.0 until 3.1.13, the implementation selected signature verification based on the certificate public key while deriving the digest from the peer-controlled signature scheme without validating that the scheme, key type, and hash requirements were consistent. The affected verification functions are verifyKeySignature for ServerKeyExchange and verifyCertificateVerify for CertificateVerify. An unauthenticated network attacker who can redirect a DTLS handshake and obtain the genuine peer certificate can submit crafted handshake signatures that are accepted without possession of the certificate private key. This can let the attacker impersonate the peer and compromise the confidentiality and integrity of protected traffic; checking a WebRTC SDP certificate fingerprint does not prevent the attack because the genuine certificate is presented. The issue is fixed in version 3.1.13.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/24/2026
The vulnerability identified within Pion DTLS, specifically affecting versions from 2.0.0 through 3.1.13, represents a critical flaw in the cryptographic handshake verification logic of this Go-based implementation of Datagram Transport Layer Security. The core technical deficiency lies in how signature verification is performed during key exchange and certificate validation phases. Specifically, the functions verifyKeySignature for ServerKeyExchange and verifyCertificateVerify for CertificateVerify failed to enforce consistency between the public key type contained within the peer's certificate and the cryptographic scheme used by the peer to generate their digital signatures. Instead of validating that the hash algorithm, signature scheme, and key parameters were mutually compatible as required by standard TLS/DTLS protocols, the implementation derived the message digest based on information provided in the peer-controlled signature structure without cross-referencing it against the constraints imposed by the certificate's public key type. This architectural oversight creates a scenario where the cryptographic verification process becomes trivially bypassable under specific network conditions.
From an operational perspective, this flaw allows for a sophisticated man-in-the-middle attack vector that compromises both authentication and confidentiality. An unauthenticated attacker positioned on the network path can intercept and redirect DTLS handshake messages to manipulate the connection parameters. By obtaining the genuine peer's certificate through passive monitoring or active interception, the attacker does not need to possess the corresponding private key to successfully impersonate the legitimate peer. Instead, by submitting crafted handshake signatures that exploit the lack of scheme-key consistency checks, the attacker can force the victim endpoint to accept a forged signature as valid. This effectively breaks the authentication mechanism inherent in DTLS, allowing the adversary to establish what appears to be a secure session while actually controlling the communication channel. The integrity and confidentiality of subsequent data traffic are thus compromised because all encrypted payloads are decrypted by the attacker before being forwarded or modified.
The severity of this vulnerability is further amplified by its relevance to WebRTC applications that rely on Pion DTLS for media transport security. In many deployments, developers attempt to mitigate man-in-the-middle attacks by verifying SDP certificate fingerprints against a known good value. However, this mitigation fails in the context of this specific flaw because the attacker presents the genuine peer's certificate during the handshake process. Since the fingerprint verification checks the identity of the presented certificate rather than the validity of the signature used to prove possession of its private key, the presence of the authentic certificate does not prevent the exploitation of the underlying cryptographic implementation error. Consequently, even robust application-layer security controls are rendered ineffective by this lower-level protocol flaw.
This vulnerability aligns with CWE-295 Improper Certificate Validation and CWE-347 Improper Verification of Cryptographic Signature, as it involves a failure to properly validate that digital signatures correspond to the claimed identity and key material. In terms of MITRE ATT&CK mapping, this behavior facilitates techniques associated with T1078 Valid Accounts or more specifically credential spoofing within protocol handshakes, allowing an attacker to bypass authentication mechanisms without stealing credentials in the traditional sense. The exploitation requires network access but does not require prior compromise of either endpoint's private keys, making it a significant risk for any service relying on DTLS for secure communication over UDP.
The resolution for this issue was implemented in version 3.1.13 of Pion DTLS by enforcing strict validation checks that ensure the signature scheme and hash algorithm are consistent with the public key type found in the peer's certificate. This correction ensures that the cryptographic verification process adheres to established standards such as RFC 5246 for TLS and its datagram variant, preventing attackers from substituting incompatible or weak signature schemes during the handshake. Organizations utilizing affected versions of Pion DTLS must upgrade immediately to version 3.1.13 or later to restore proper authentication guarantees. Additionally, developers should review their network security policies to ensure that no legacy systems remain on networks where unauthenticated actors could potentially intercept and manipulate UDP traffic destined for services using this library.