Summary
Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonation
Pion DTLS did not consistently validate that a handshake signature scheme matched the certificate's public key type and required hash algorithm. An attacker could exploit this mismatch to bypass proof of possession of a certificate's private key and impersonate that certificate's owner.
Discovered by Anthropic's OSS Scanner, tracking ID 0Q4PYECH.
Details
The vulnerable implementation selected the signature verification primitive from the certificate's public key type, while deriving the digest from the peer-controlled handshake signature scheme.
A signature constructed solely from an ECDSA P-256 certificate's public key was accepted by both vulnerable verification functions:
- verifyKeySignature, used for ServerKeyExchange.
- verifyCertificateVerify, used for CertificateVerify.
The same forged signature was accepted for two different handshake messages, confirming that verification was independent of the transcript.
Impact
An attacker who can redirect the victim's DTLS handshake, and also have access to the peer's public certificate, may impersonate that peer without its private key. For WebRTC, checking the SDP certificate fingerprint does not prevent this attack because the attacker presents the genuine peer certificate.
Fixed by https://github.com/pion/dtls/commit/cb560535461a483f2930a91a474e72fa6b615b87
CVE-2026-135388 has a CVSS score of 9.1 (Critical). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (3.1.13); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.
Frequently Asked Questions
- What is CVE-2026-135388? CVE-2026-135388 is a critical-severity security vulnerability in github.com/pion/dtls/v3 (go), affecting versions >= 3.0.0, < 3.1.13. It is fixed in 3.1.13.
- How severe is CVE-2026-135388? CVE-2026-135388 has a CVSS score of 9.1 (Critical). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which packages are affected by CVE-2026-135388?
github.com/pion/dtls/v3(go) (versions >= 3.0.0, < 3.1.13)github.com/pion/dtls/v2(go) (versions >= 2.0.0, <= 2.2.12)
- Is there a fix for CVE-2026-135388? Yes. CVE-2026-135388 is fixed in 3.1.13. Upgrade to this version or later.
- Is CVE-2026-135388 exploitable, and should I be worried? Whether CVE-2026-135388 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2026-135388 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2026-135388? Upgrade
github.com/pion/dtls/v3to 3.1.13 or later.