GHSA-7c2r-jhm9-43vf

Suggest an improvement
Source
https://github.com/advisories/GHSA-7c2r-jhm9-43vf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-7c2r-jhm9-43vf/GHSA-7c2r-jhm9-43vf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7c2r-jhm9-43vf
Aliases
Published
2026-11-30T21:51:12Z
Modified
2026-11-30T22:00:05Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonation
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

Database specific
{
    "cwe_ids":  [
        "CWE-347"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-11-30T21:51:12Z",
    "nvd_published_at":  "2026-11-24T17:18:23Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Go / github.com/pion/dtls/v3

Package

Name
github.com/pion/dtls/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/pion/dtls/v3

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.1.13

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-7c2r-jhm9-43vf/GHSA-7c2r-jhm9-43vf.json"

Go / github.com/pion/dtls/v2

Package

Name
github.com/pion/dtls/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/pion/dtls/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Last Affected
2.2.12

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-7c2r-jhm9-43vf/GHSA-7c2r-jhm9-43vf.json"