CVE-2026-135391: Pion DTLS Oversized Peer RSA Keys Allow Vulnerability

MODERATE
Advisory Identifier: GHSA-jp25-wc3w-p9xp
CWE-400
Published
Advisory Summary

CVE-2026-135391 is a MODERATE oversized peer rsa keys allow vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Pion DTLS libraries in the Go ecosystem. The issue involves oversized peer rsa keys allow excessive cpu consumption during dtls handshakes. Remediation is available by upgrading affected packages to version 3.1.13, 4.0.0-rc.6.

CVE-2026-135391 at a Glance

CVE Identifier CVE-2026-135391
GHSA Identifier GHSA-jp25-wc3w-p9xp
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Pion DTLS
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-135391

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
github.com/pion/dtls/v4 fixed: 4.0.0-rc.6
Upgrade github.com/pion/dtls/v4 to 4.0.0-rc.6
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-135391, 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. 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 limit the size of RSA public keys in peer certificates before performing signature verification. A remote peer could provide a certificate containing an unusually large RSA modulus and trigger expensive cryptographic operations, causing excessive CPU consumption. Discovered by Anthropic's OSS Scanner, tracking ID `3X1BUF5Y`. ### Details The vulnerable implementation parsed peer certificates and passed their RSA public keys directly to handshake signature verification without checking the modulus size. An attacker does not need to generate a corresponding RSA private key or provide a valid handshake signature. A certificate containing a large, attacker-chosen public modulus and an invalid signature is sufficient to trigger expensive verification before rejection. The affected paths include verification of ServerKeyExchange and CertificateVerify. Peer certificate chains also lacked an explicit RSA key-size limit. ### Impact Repeated or concurrent malicious handshakes can consume substantial CPU resources, reducing service availability and delaying legitimate connections. WebRTC applications can be affected when an attacker can reach the DTLS handshake and cause an RSA verification path to execute. Using a local ECDSA certificate does not itself prevent the peer from presenting an RSA certificate. fixed by https://github.com/pion/dtls/commit/fa6e8d38a3a61044117628bde1ac8c1318f34379 by rejecting peer RSA public keys larger than 8,192 bits like `crypto/tls`.

CVE-2026-135391 Affected Pion DTLS Versions

3 component(s)
Fixed Versions:
3.1.134.0.0-rc.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/pion/dtls/v3
Go
≥ 3.0.0
< 3.1.13
3.1.13
github.com/pion/dtls/v2
Go
≥ 2.0.0
≤ 2.2.12
github.com/pion/dtls/v4
Go
< 4.0.0-rc.6
4.0.0-rc.6

References

Frequently Asked Questions

What is CVE-2026-135391?
CVE-2026-135391 is a security vulnerability in Pion DTLS involving Oversized peer RSA keys allow excessive CPU consumption during DTLS handshakes under CWE-400: Uncontrolled Resource Consumption.
Which Pion DTLS versions are affected?
Affected versions include releases prior to 3.1.13, 4.0.0-rc.6 across affected packages: github.com/pion/dtls/v3, github.com/pion/dtls/v2, github.com/pion/dtls/v4.
What version fixes CVE-2026-135391?
Upgrading to 3.1.13, 4.0.0-rc.6 (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 CWE is associated with CVE-2026-135391?
CVE-2026-135391 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for CVE-2026-135391?
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-jp25-wc3w-p9xp",
  "modified" : "2026-12-02T22:40:03Z",
  "published" : "2026-12-02T22:40:03Z",
  "aliases" : [ "CVE-2026-135391" ],
  "summary" : "Pion DTLS: Oversized peer RSA keys allow excessive CPU consumption during DTLS handshakes",
  "details" : "### Summary\n\nPion DTLS did not limit the size of RSA public keys in peer certificates before performing signature verification. A remote peer could provide a certificate containing an unusually large RSA modulus and trigger expensive cryptographic operations, causing excessive CPU consumption.\n\nDiscovered by Anthropic's OSS Scanner, tracking ID `3X1BUF5Y`.\n\n### Details\n\nThe vulnerable implementation parsed peer certificates and passed their RSA public keys directly to handshake signature verification without checking the modulus size.\n\nAn attacker does not need to generate a corresponding RSA private key or provide a valid handshake signature. A certificate containing a large, attacker-chosen public modulus and an invalid signature is sufficient to trigger expensive verification before rejection.\nThe affected paths include verification of ServerKeyExchange and CertificateVerify. Peer certificate chains also lacked an explicit RSA key-size limit.\n\n### Impact\n\nRepeated or concurrent malicious handshakes can consume substantial CPU resources, reducing service availability and delaying legitimate connections.\nWebRTC applications can be affected when an attacker can reach the DTLS handshake and cause an RSA verification path to execute. Using a local ECDSA certificate does not itself prevent the peer from presenting an RSA certificate.\n\nfixed by https://github.com/pion/dtls/commit/fa6e8d38a3a61044117628bde1ac8c1318f34379 by rejecting peer RSA public keys larger than 8,192 bits like `crypto/tls`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA: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"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pion/dtls/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0-rc.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/security/advisories/GHSA-jp25-wc3w-p9xp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-135391"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/pull/1229"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/commit/0b615da56cf134adba79d75a817e21008cc7c9a5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pion/dtls/commit/fa6e8d38a3a61044117628bde1ac8c1318f34379"
  }, {
    "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-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-02T22:40:03Z",
    "nvd_published_at" : "2026-11-24T17:18:24Z"
  }
}