Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonation
Published 30 Nov 2026 · Updated 30 Nov 2026
Affected packages
- Affected
- >=3.0.0 <3.1.13
- Fixed in
- 3.1.13
go get github.com/pion/dtls/v3@v3.1.13- Affected
- >=2.0.0 <=2.2.12
- Fixed in
- No fix released
Which github.com/pion/dtls/v3 does your project really install?
Works for private projects: the file is read in memory to run the scan and then dropped. Also reads other package files.
Public repo?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Details
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
Is GHSA-7c2r-jhm9-43vf in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/pion/dtls/v3, and gives you the command that fixes it.
More advisories for github.com/pion/dtls/v3
- LowCVE-2026-54908Panic while parsing crafted ECDHE_PSK ServerKeyExchange in github.com/pion/dtls/v3 · 18 Aug 2026
- MediumCVE-2026-54908Pion DTLS vulnerable to denial of service via panic while parsing a crafted ECDHE_PSK ServerKeyExchange message · 31 Jul 2026
- LowCVE-2026-26014Usage of random nonce generation with AES GCM ciphers risks leaking the authentication key in github.com/pion/dtls · 19 Feb 2026
- MediumCVE-2026-26014Pion DTLS's usage of random nonce generation with AES GCM ciphers risks leaking the authentication key · 11 Feb 2026
References
- Linkgithub.com/pion/dtls/security/advisories/GHSA-7c2r-jhm9-43vf
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-135388
- Linkgithub.com/pion/dtls/pull/1229
- Linkgithub.com/pion/dtls/commit/87aff19290780eb4b2db31d1402faf8f425a8ff1
- Linkgithub.com/pion/dtls/commit/cb560535461a483f2930a91a474e72fa6b615b87
- Packagegithub.com/pion/dtls
- Linkgithub.com/pion/dtls/releases/tag/v3.1.13
- Linkgithub.com/pion/dtls/releases/tag/v4.0.0-rc.6
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.