Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonationGHSA-7c2r-jhm9-43vf
CRITICALFix: pion/dtls#1229GHSA-7c2r-jhm9-43vf is a critical-severity (CVSS 9.1) CWE-347 vulnerability in github.com/pion/dtls/v3. A fix is available for github.com/pion/dtls/v3 — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-7c2r-jhm9-43vf.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/pion/dtls/v3🐹github.com/pion/dtls/v2Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/pion/dtls/v3 | ≥ 3.0.0&&< 3.1.13 | 3.1.13go get github.com/pion/dtls/v3@v3.1.13 |
| 🐹Go | github.com/pion/dtls/v2 | ≥ 2.0.0 | No fix |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/pion/dtls/v3, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/pion/dtls/v3 to 3.1.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-7c2r-jhm9-43vf is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is rated Important rather than Critical because successful exploitation requires an on-path position to redirect the DTLS handshake and possession of the peer's public certificate (attack complexity high). Red Hat ships Pion DTLS as a bundled Go dependency in Network Observability (ebpf-agent and…
Upgrade github.com/pion/dtls to 3.1.13 or later (or a fixed 2.x release). Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.Source: Red Hat security advisory for GHSA-7c2r-jhm9-43vf (CC BY 4.0)
Frequently Asked Questions
Is GHSA-7c2r-jhm9-43vf in your dependencies?
Find it across Go, including transitive dependencies.