CVE-2026-135391: Pion DTLS Oversized Peer RSA Keys Allow Vulnerability
MODERATECVE-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
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.
Upgrade github.com/pion/dtls/v3 to 3.1.13
Upgrade github.com/pion/dtls/v2 to Latest secure release
Upgrade github.com/pion/dtls/v4 to 4.0.0-rc.6
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
CVE-2026-135391 Affected Pion DTLS Versions
3 component(s)| 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?
Which Pion DTLS versions are affected?
What version fixes CVE-2026-135391?
Is github.com/pion/dtls/v3 affected?
Is github.com/pion/dtls/v2 affected?
What CWE is associated with CVE-2026-135391?
How can I check Go dependencies for CVE-2026-135391?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}