# GHSA-7C2R-JHM9-43VF: DTLS handshake signature scheme confusion allows peer impersonation

- Database: GitHub
- Severity: CVSS 9.1 (Critical)
- Published: 2026-10-16
- Modified: 2026-11-24

## Tracked as

- [CVE-2026-135388](https://cve.now/CVE-2026-135388.md): DTLS peer impersonation via handshake signature bypass

## Affected versions

- github.com/pion/dtls/v3 (Go): from 3.0.0, fixed in 3.1.13
- github.com/pion/dtls/v2 (Go): from 2.0.0, through 2.2.12

## Description

### 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

## References

- https://github.com/pion/dtls/security/advisories/GHSA-7c2r-jhm9-43vf

Page: https://cve.now/GHSA-7C2R-JHM9-43VF

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
