CVE-2026-135388: Pion DTLS DTLS Handshake Signature Scheme Confusion Vulnerability

CRITICAL
Advisory Identifier: GHSA-7c2r-jhm9-43vf
CVSS 9.1
CWE-347
Published
Advisory Summary

CVE-2026-135388 is a CRITICAL (CVSS 9.1) dtls handshake signature scheme confusion vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Pion DTLS libraries in the Go ecosystem. The issue involves dtls handshake signature scheme confusion allows peer impersonation. Remediation is available by upgrading affected packages to version 3.1.13.

CVE-2026-135388 at a Glance

CVE Identifier CVE-2026-135388
GHSA Identifier GHSA-7c2r-jhm9-43vf
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Pion DTLS
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-135388

To remediate this vulnerability, upgrade all affected Pion DTLS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/pion/dtls/v3 fixed: 3.1.13
Upgrade github.com/pion/dtls/v3 to 3.1.13
github.com/pion/dtls/v2 fixed: Latest secure release
Upgrade github.com/pion/dtls/v2 to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/pion/dtls/v3

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-135388, inspect your project dependencies for Pion DTLS:

inspect dependencies for github.com/pion/dtls/v3

Analyze the terminal output to locate any version of Pion DTLS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.13), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Pion DTLS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2026-135388 Affected Pion DTLS Versions

2 component(s)
Fixed Versions:
3.1.13
Product / Package Ecosystem Affected Versions Fixed Version
github.com/pion/dtls/v3
Go
< 3.1.13
≥ 3.0.0
3.1.13
github.com/pion/dtls/v2
Go
≥ 2.0.0
≤ 2.2.12

References

Frequently Asked Questions

What is CVE-2026-135388?
CVE-2026-135388 is a security vulnerability in Pion DTLS involving DTLS handshake signature scheme confusion allows peer impersonation under CWE-347: Improper Verification of Cryptographic Signature.
Which Pion DTLS versions are affected?
Affected versions include releases prior to 3.1.13 across affected packages: github.com/pion/dtls/v3, github.com/pion/dtls/v2.
What version fixes CVE-2026-135388?
Upgrading to 3.1.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/pion/dtls/v3 affected?
Yes, github.com/pion/dtls/v3 is affected in releases prior to 3.1.13. Upgrade your dependency to 3.1.13 or later.
Is github.com/pion/dtls/v2 affected?
Yes, github.com/pion/dtls/v2 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-135388?
CVE-2026-135388 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-135388?
CVE-2026-135388 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check Go dependencies for CVE-2026-135388?
Run the dependency tree command: 'inspect dependencies for github.com/pion/dtls/v3'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7c2r-jhm9-43vf",
  "modified" : "2026-11-30T21:51:12Z",
  "published" : "2026-11-30T21:51:12Z",
  "aliases" : [ "CVE-2026-135388" ],
  "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",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "last_affected" : "2.2.12"
      } ]
    } ]
  } ],
  "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"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-30T21:51:12Z",
    "nvd_published_at" : "2026-11-24T17:18:23Z"
  }
}