{"id":"CVE-2026-135388","aliases":["CVE-2026-135388","GHSA-7c2r-jhm9-43vf"],"related":[],"kind":"vulnerability","state":"published","title":"Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonation","summary":"Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.0.0 until 3.1.13, the implementation selected signature verification based on the certificate public key while deriving the digest from the peer-controlled signature scheme without validating that the scheme, key type, and hash requirements were consistent. The affected verification functions are verifyKeySignature for ServerKeyExchange and verifyCertificateVerify for CertificateVerify. An unauthenticated network attacker who can redirect a DTLS handshake and obtain the genuine peer certificate can submit crafted handshake signatures that are accepted without possession of the certificate private key. This can let the attacker impersonate the peer and compromise the confidentiality and integrity of protected traffic; checking a WebRTC SDP certificate fingerprint does not prevent the attack because the genuine certificate is presented. The issue is fixed in version 3.1.13.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Pion DTLS is a Go implementation of Datagram Transport Layer Security. From 2.0.0 until 3.1.13, the implementation selected signature verification based on the certificate public key while deriving the digest from the peer-controlled signature scheme without validating that the scheme, key type, and hash requirements were consistent. The affected verification functions are verifyKeySignature for ServerKeyExchange and verifyCertificateVerify for CertificateVerify. An unauthenticated network attacker who can redirect a DTLS handshake and obtain the genuine peer certificate can submit crafted handshake signatures that are accepted without possession of the certificate private key. This can let the attacker impersonate the peer and compromise the confidentiality and integrity of protected traffic; checking a WebRTC SDP certificate fingerprint does not prevent the attack because the genuine certificate is presented. The issue is fixed in version 3.1.13.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"}],"published":"2026-11-24T16:44:56.037Z","modified":"2026-11-30T22:00:05.266Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-347"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.1.13","status":"affected"},{"version":">= 2.0.0, <= 2.2.12","status":"affected"}],"vendor":"pion","product":"dtls","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.1.13"}],"ecosystem":"Go","package":"github.com/pion/dtls/v3","purl":"pkg:golang/github.com/pion/dtls/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","lastAffected":"2.2.12"}],"ecosystem":"Go","package":"github.com/pion/dtls/v2","purl":"pkg:golang/github.com/pion/dtls/v2","source":"ghsa"}],"references":[{"url":"https://github.com/pion/dtls/security/advisories/GHSA-7c2r-jhm9-43vf","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pion/dtls/pull/1229","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pion/dtls/commit/87aff19290780eb4b2db31d1402faf8f425a8ff1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pion/dtls/commit/cb560535461a483f2930a91a474e72fa6b615b87","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pion/dtls/releases/tag/v3.1.13","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pion/dtls/releases/tag/v4.0.0-rc.6","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135388","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pion/dtls","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-11-24T17:13:46.498Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-135388","url":"https://www.cve.org/CVERecord?id=CVE-2026-135388","licence":"CVE Terms of Use","modified":"2026-11-24T17:13:55.654Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7c2r-jhm9-43vf","url":"https://github.com/advisories/GHSA-7c2r-jhm9-43vf","licence":"CC-BY-4.0","modified":"2026-11-30T22:00:05.266Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-135388","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135388","licence":"Public domain","modified":"2026-11-24T20:17:49.800Z"}],"updatedAt":"2026-11-30T22:07:25.102Z","epss":{"score":0.00346,"percentile":0.30158,"date":"2026-12-01T12:00:22.000Z"}}