MediumGHSA-jp25-wc3w-p9xpCVE-2026-135391

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

Published 2 Dec 2026 · Updated 2 Dec 2026

Affected packages

Affected
>=3.0.0 <3.1.13
Fixed in
3.1.13
Update to the fixed version for your release line, for example:go get github.com/pion/dtls/v3@v3.1.13
Affected
>=2.0.0 <=2.2.12
Fixed in
No fix released
Affected
<4.0.0-rc.6
Fixed in
4.0.0-rc.6
Update to the fixed version for your release line, for example:go get github.com/pion/dtls/v4@v4.0.0-rc.6

We confirm your address first. See our privacy policy.

Which github.com/pion/dtls/v3 does your project really install?

Drop your go.mod hereWe find the exact github.com/pion/dtls/v3 version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

Works for private projects: the file is read in memory to run the scan and then dropped. Also reads other package files.

Public repo?

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Details

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.

Is GHSA-jp25-wc3w-p9xp in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/pion/dtls/v3, and gives you the command that fixes it.

More advisories for github.com/pion/dtls/v3

  • HighCVE-2026-135390Pion DTLS: Client authentication bypass when client and server connections share a session store · 3 Dec 2026
  • CriticalCVE-2026-135389Pion DTLS: Client authentication bypass through premature DTLS 1.2 session caching · 3 Dec 2026
  • MediumCVE-2026-135393Pion DTLS: Repeated client certificate verification allows excessive CPU consumption during DTLS handshakes · 2 Dec 2026
  • HighCVE-2026-135392Pion DTLS: Unbounded handshake cache allows remote memory exhaustion · 2 Dec 2026
  • CriticalCVE-2026-135388Pion DTLS: DTLS handshake signature scheme confusion allows peer impersonation · 30 Nov 2026
  • LowCVE-2026-54908Panic while parsing crafted ECDHE_PSK ServerKeyExchange in github.com/pion/dtls/v3 · 18 Aug 2026
All 10 advisories for github.com/pion/dtls/v3

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.