{"id":"GHSA-7c2r-jhm9-43vf","summary":"Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonation","details":"### Summary\n\nPion 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.\n\nDiscovered by Anthropic's OSS Scanner, tracking ID `0Q4PYECH`.\n\n### Details\n\nThe 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.\n\nA signature constructed solely from an ECDSA P-256 certificate's public key was accepted by both vulnerable verification functions:\n- verifyKeySignature, used for ServerKeyExchange.\n- verifyCertificateVerify, used for CertificateVerify.\n\nThe same forged signature was accepted for two different handshake messages, confirming that verification was independent of the transcript.\n\n### Impact\n\nAn 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.\n\n\nFixed by https://github.com/pion/dtls/commit/cb560535461a483f2930a91a474e72fa6b615b87","aliases":["CVE-2026-135388"],"modified":"2026-11-30T22:00:05.266523318Z","published":"2026-11-30T21:51:12Z","database_specific":{"github_reviewed_at":"2026-11-30T21:51:12Z","nvd_published_at":"2026-11-24T17:18:23Z","cwe_ids":["CWE-347"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/pion/dtls/security/advisories/GHSA-7c2r-jhm9-43vf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135388"},{"type":"WEB","url":"https://github.com/pion/dtls/pull/1229"},{"type":"WEB","url":"https://github.com/pion/dtls/commit/87aff19290780eb4b2db31d1402faf8f425a8ff1"},{"type":"WEB","url":"https://github.com/pion/dtls/commit/cb560535461a483f2930a91a474e72fa6b615b87"},{"type":"PACKAGE","url":"https://github.com/pion/dtls"},{"type":"WEB","url":"https://github.com/pion/dtls/releases/tag/v3.1.13"},{"type":"WEB","url":"https://github.com/pion/dtls/releases/tag/v4.0.0-rc.6"}],"affected":[{"package":{"name":"github.com/pion/dtls/v3","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v3"},"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"}},{"package":{"name":"github.com/pion/dtls/v2","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v2"},"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"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}