CVE-2026-135391

CVE-2026-135391 is a medium-severity uncontrolled resource consumption vulnerability in github.com/pion/dtls/v3 (go), affecting versions >= 3.0.0, < 3.1.13. It is fixed in 3.1.13, 4.0.0-rc.6.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

Pion DTLS: Oversized peer RSA keys allow excessive CPU consumption during DTLS handshakes

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.

Crafted input forces the application to consume excessive CPU, memory, or other resources, degrading or denying service. Typical impact: denial of service.

Affected versions

github.com/pion/dtls/v3 (>= 3.0.0, < 3.1.13) github.com/pion/dtls/v2 (>= 2.0.0, <= 2.2.12) github.com/pion/dtls/v4 (< 4.0.0-rc.6)

Security releases

github.com/pion/dtls/v3 → 3.1.13 (go) github.com/pion/dtls/v4 → 4.0.0-rc.6 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade the following packages to resolve this vulnerability:

github.com/pion/dtls/v3 to 3.1.13 or later; github.com/pion/dtls/v4 to 4.0.0-rc.6 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2026-135391? CVE-2026-135391 is a medium-severity uncontrolled resource consumption vulnerability in github.com/pion/dtls/v3 (go), affecting versions >= 3.0.0, < 3.1.13. It is fixed in 3.1.13, 4.0.0-rc.6. Crafted input forces the application to consume excessive CPU, memory, or other resources, degrading or denying service.
  2. Which packages are affected by CVE-2026-135391?
    • github.com/pion/dtls/v3 (go) (versions >= 3.0.0, < 3.1.13)
    • github.com/pion/dtls/v2 (go) (versions >= 2.0.0, <= 2.2.12)
    • github.com/pion/dtls/v4 (go) (versions < 4.0.0-rc.6)
  3. Is there a fix for CVE-2026-135391? Yes. CVE-2026-135391 is fixed in 3.1.13, 4.0.0-rc.6. Upgrade to this version or later.
  4. Is CVE-2026-135391 exploitable, and should I be worried? Whether CVE-2026-135391 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2026-135391 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2026-135391?
    • Upgrade github.com/pion/dtls/v3 to 3.1.13 or later
    • Upgrade github.com/pion/dtls/v4 to 4.0.0-rc.6 or later

Other vulnerabilities in github.com/pion/dtls/v3

Stop the waste.
Protect your environment with Kodem.