CVE-2026-135388: Cryptographic Signature Verification Bypass in Pion DTLS
Vulnerability ID: CVE-2026-135388
CVSS Score: 9.1
Published: 2026-11-30
CVE-2026-135388 (GHSA-7c2r-jhm9-43vf) is an improper verification of cryptographic signature vulnerability (CWE-347) in Pion DTLS, a pure Go implementation of Datagram Transport Layer Security (RFC 6347). The vulnerability stems from signature scheme confusion and missing cryptographic parameter binding in the handshake verification functions verifyKeySignature and verifyCertificateVerify. By presenting a genuine peer certificate paired with an incompatible or digest-less signature hash algorithm on the wire, an unauthenticated network adversary can bypass signature verification without possessing the peer's private key. This allows peer impersonation and full compromise of confidentiality and integrity in DTLS-protected channels, including WebRTC sessions utilizing SDP certificate fingerprint verification.
TL;DR
A signature scheme confusion flaw in Pion DTLS allows unauthenticated network attackers to bypass DTLS handshake signature verification and impersonate peers using only their public certificates, defeating WebRTC SDP fingerprint checks.
⚠️ Exploit Status: POC
Technical Details
- CVE / Advisory ID: CVE-2026-135388 / GHSA-7c2r-jhm9-43vf
- Weakness Class: CWE-347: Improper Verification of Cryptographic Signature
- CVSS v3.1 Score: 9.1 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)
- EPSS Score: 0.35% (20.59th Percentile)
- Affected Functions: verifyKeySignature, verifyCertificateVerify (crypto.go)
- Primary Impact: Unauthenticated DTLS Peer Impersonation & Session Key Compromise
- Patched Versions: v3.1.13, v4.0.0-rc.6
- CISA KEV Status: Not Listed (false)
Affected Systems
- github.com/pion/dtls
- github.com/pion/dtls/v2
- github.com/pion/dtls/v3
- github.com/pion/dtls/v2: >= 2.0.0, <= 2.2.12 (Fixed in:
v3.1.13) - github.com/pion/dtls/v3: >= 3.0.0, < 3.1.13 (Fixed in:
v3.1.13) - github.com/pion/dtls (v4): >= 4.0.0-rc.1, <= 4.0.0-rc.5 (Fixed in:
v4.0.0-rc.6)
Code Analysis
Commit: cb56053
Bind handshake signature scheme to certificate public key and non-zero hash algorithm (v3 branch)
@@ -91,6 +91,40 @@ func validateSignatureAlgOID(cert *x509.Certificate, sigAlg signature.Algorithm) } } +// validateHandshakeSignatureScheme binds the wire scheme to the key and hash. +// RSA and ECDSA must never sign or verify a digest-less handshake. +func validateHandshakeSignatureScheme( + publicKey crypto.PublicKey, + hashAlgorithm hash.Algorithm, + signatureAlgorithm signature.Algorithm, +) error { + if _, ok := publicKey.(ed25519.PublicKey); ok { + if signatureAlgorithm == signature.Ed25519 && hashAlgorithm == hash.Ed25519 { + return nil + } + + return errInvalidSignatureAlgorithm + } + if hashAlgorithm.CryptoHash() == 0 { + return errInvalidSignatureAlgorithm + } + switch publicKey.(type) { + case *ecdsa.PublicKey: + if signatureAlgorithm == signature.ECDSA { + return nil + } + case *rsa.PublicKey: + // GetPSSHash returns hash.None for non-PSS schemes, which the + // nonzero hash check above already excludes. + if signatureAlgorithm == signature.RSA || + signatureAlgorithm.GetPSSHash() == hashAlgorithm { + return nil + } + } + + return errInvalidSignatureAlgorithm +} Commit: 87aff19
Bind handshake signature scheme to certificate public key and non-zero hash algorithm (main / v4 branch)
Exploit Details
- GitHub (Upstream Regression Test PoC): Upstream unit test TestHandshakeSignatureSchemeBinding in crypto_test.go demonstrating 10 signature scheme confusion and empty-digest bypass vectors.
Mitigation Strategies
- Upgrade Pion DTLS to v3.1.13 or v4.0.0-rc.6 across all Go services, WebRTC Selective Forwarding Units (SFUs), and media gateways.
- Migrate legacy applications using github.com/pion/dtls/v2 (<= v2.2.12) to github.com/pion/dtls/v3@v3.1.13.
- Monitor DTLS handshake error logs for errInvalidSignatureAlgorithm rejections indicating anomalous signature scheme combinations.
- Deploy network IDS rules to detect DTLS ServerKeyExchange and CertificateVerify records containing digest-less or mismatched SignatureAndHashAlgorithm byte pairs (e.g., 0x0801, 0x0803, 0x0001, 0x0003).
Remediation Steps:
- Audit all Go repositories and binary builds using 'go list -m all | grep github.com/pion/dtls' to identify vulnerable versions (< v3.1.13 or <= v2.2.12).
- Execute 'go get github.com/pion/dtls/v3@v3.1.13 && go mod tidy' in affected Go module directories.
- Rebuild and redeploy all affected Go binaries, including WebRTC media servers, TURN/STUN relays, and DTLS proxies.
- Validate that deployed binaries incorporate commit cb560535461a483f2930a91a474e72fa6b615b87 or 87aff19290780eb4b2db31d1402faf8f425a8ff1 using 'go version -m '.
References
- GitHub Security Advisory: GHSA-7c2r-jhm9-43vf
- NVD Vulnerability Record: CVE-2026-135388
- CVE.org Record: CVE-2026-135388
- Pion DTLS Pull Request #1229
- Fix Commit (v3 branch): cb560535461a483f2930a91a474e72fa6b615b87
- Fix Commit (main / v4 branch): 87aff19290780eb4b2db31d1402faf8f425a8ff1
- Pion DTLS Release v3.1.13
- Pion DTLS Release v4.0.0-rc.6
Read the full report for CVE-2026-135388 on our website for more details including interactive diagrams and full exploit analysis.

