Skip to content
← Blog · · df00tech

Pion DTLS Signature Scheme Confusion Allows Certificate Impersonation (CVE-2026-135388)

breaking ghsa go CVE-2026-135388

What Happened

A GitHub Security Advisory (GHSA-7c2r-jhm9-43vf) published on 2026-11-30 discloses a vulnerability in the Go-based pion/dtls library (versions v2 and v3), tracked as CVE-2026-135388 with a reported CVSS of 9.1. According to the advisory, which credits Anthropic's OSS Scanner, the library's handshake verification functions verifyKeySignature (ServerKeyExchange) and verifyCertificateVerify (CertificateVerify) selected the signature verification primitive based on the certificate's public key type but derived the digest from the peer-controlled handshake signature scheme. The advisory states this mismatch let a forged signature, constructed solely from an ECDSA P-256 certificate's public key, be accepted by both functions for different handshake messages, independent of the transcript. The maintainers fixed the issue in commit cb560535461a483f2930a91a474e72fa6b615b87.

Why It Matters

Per the advisory, an attacker who can redirect a victim's DTLS handshake and who has access to the peer's genuine public certificate (not its private key) can impersonate that peer. This is notable for WebRTC deployments. The advisory notes that checking the SDP certificate fingerprint does not prevent the attack, because the attacker presents the real peer certificate rather than a fabricated one. Any Go service using pion/dtls/v2 or v3 for DTLS or DTLS-SRTP handshakes is potentially affected. Exploit status is currently reported as theoretical, with no known ransomware campaign use.

What Defenders Should Do Now

  • Inventory Go services and dependencies for github.com/pion/dtls/v2 and github.com/pion/dtls/v3, including transitive use via WebRTC stacks.
  • Upgrade to the patched release incorporating commit cb56053 once it is available for your module version.
  • Where DTLS handshake traffic can be monitored, watch for anomalies such as repeated or duplicate signatures across distinct handshake message types (ServerKeyExchange vs. CertificateVerify) for the same peer session.
  • For WebRTC and DTLS-SRTP deployments, do not rely solely on SDP fingerprint matching as an impersonation control until patched.
  • Review network paths where handshake traffic could be redirected, since a man-in-the-middle position is a prerequisite for this attack.

Developing Intel

This is a same-day advisory and details may evolve as the community assesses real-world exploitability and patch adoption. For authoritative details and updates, see the original GitHub Security Advisory: GHSA-7c2r-jhm9-43vf.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.