Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.1
CVE-2026-135388: Pion DTLS allows attacker to impersonate a peer
CVE-2026-135388 · published 6 days ago
Summary
The Pion DTLS library may accept a forged signature during the handshake, letting someone pretend to be the other party even without the private key. This can be exploited in applications like WebRTC where the handshake can be intercepted. Upgrade the library to the latest version that includes the fix.
What to do
- Update github.com pion to version 3.1.13.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | pion | dtls | >= 3.0.0, < 3.1.13 |
| Ubuntu:24.04:LTS | canonical | golang-github-pion-dtls.v2 | All versions |
| Ubuntu:26.10 | canonical | golang-github-pion-dtls-v3 | All versions |
| Debian:14 | debian | golang-github-pion-dtls-v3 | All versions |
| Debian:12 | debian | golang-github-pion-dtls.v2 | All versions |
| go | github.com | pion |
>= 3.0.0, < 3.1.13 Fix: upgrade to 3.1.13
|
| go | github.com | pion | >= 2.0.0, <= 2.2.12 |
Original advisory text
Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonation
### Summary
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
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
References
- https://ubuntu.com/security/CVE-2026-135388 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-135388 Third Party Advisory
- https://github.com/pion/dtls/commit/87aff19290780eb4b2db31d1402faf8f425a8ff1
- https://github.com/pion/dtls/commit/cb560535461a483f2930a91a474e72fa6b615b87
- https://github.com/pion/dtls/pull/1229
- https://github.com/pion/dtls/releases/tag/v3.1.13
- https://github.com/pion/dtls/security/advisories/GHSA-7c2r-jhm9-43vf
- https://github.com/pion/dtls/releases/tag/v4.0.0-rc.6
- https://security-tracker.debian.org/tracker/CVE-2026-135388 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-135388
- https://github.com/advisories/GHSA-7c2r-jhm9-43vf
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Type
CWE-347Improper Verification of Cryptographic Signature
Timeline
Published30 Nov 2026
Updated3 Dec 2026
First seen24 Nov 2026
Sources
CVE-2026-135388 · NVD
CVE-2026-135388 · MITRE
UBUNTU-CVE-2026-135388 · OSV
DEBIAN-CVE-2026-135388 · OSV
GHSA-7c2r-jhm9-43vf · GHSA
Track software like this
Free during beta