CVE-2026-135391: CVE-2026-135391: Uncontrolled Resource Consumption via Oversized Peer RSA Keys in Pion DTLS
CVE-2026-135391: Uncontrolled Resource Consumption via Oversized Peer RSA Keys in Pion DTLS Vulnerability ID: CVE-2026-135391 CVSS Score: 6.9 Published: 2026-12-02 Pion DTLS versions from 2.0.0 prior to 3.1.13 and 4
CVE-2026-135391: Uncontrolled Resource Consumption via Oversized Peer RSA Keys in Pion DTLS
Vulnerability ID: CVE-2026-135391
CVSS Score: 6.9
Published: 2026-12-02
Pion DTLS versions from 2.0.0 prior to 3.1.13 and 4.0.0-rc.6 fail to enforce an upper bound on the modulus bit length of peer RSA public keys during handshake signature and certificate chain verification. Because RSA verification performs modular exponentiation whose computational complexity grows superlinearly with modulus size, a remote unauthenticated peer can transmit a synthetic certificate containing an arbitrary multi-thousand-bit RSA modulus and an invalid signature to trigger CPU exhaustion.
TL;DR
An algorithmic complexity vulnerability in Pion DTLS allows unauthenticated remote attackers to exhaust CPU resources by presenting X.509 certificates with oversized RSA public key moduli during the DTLS handshake.
⚠️ Exploit Status: POC
Technical Details
- CVE ID: CVE-2026-135391 (GHSA-jp25-wc3w-p9xp)
- CWE Classification: CWE-400 / CWE-770 / CWE-1284
- CVSS v4.0 Score: 6.9 Medium (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L)
- Attack Vector: Network (Unauthenticated DTLS UDP Handshake)
- EPSS Score: 0.58% (49.18th Percentile)
- Impact: CPU Exhaustion / Denial of Service via BigInt Modular Exponentiation
- Exploit Status: Proof-of-Concept in Unit Tests
- Patched Versions: v3.1.13, v4.0.0-rc.6
Affected Systems
- github.com/pion/dtls (v2.0.0 through v2.2.12)
- github.com/pion/dtls/v3 (v3.0.0 prior to v3.1.13)
- github.com/pion/dtls/v4 (v4.0.0-rc.1 through v4.0.0-rc.5)
-
Pion DTLS (v2): >= 2.0.0, <= 2.2.12 (Fixed in:
v3.1.13) -
Pion DTLS (v3): >= 3.0.0, < 3.1.13 (Fixed in:
v3.1.13) -
Pion DTLS (v4): < 4.0.0-rc.6 (Fixed in:
v4.0.0-rc.6)
Code Analysis
Commit: fa6e8d3
Enforce 8192-bit maximum peer RSA key size in parsePeerCertificate (v3 branch)
+const maxPeerRSAKeyBits = 8192
+
+func parsePeerCertificate(raw []byte) (*x509.Certificate, error) {
+ cert, err := x509.ParseCertificate(raw)
+ if err != nil {
+ return nil, err
+ }
+ if key, ok := cert.PublicKey.(*rsa.PublicKey); ok && key.N.BitLen() > maxPeerRSAKeyBits {
+ return nil, errPeerRSAKeyTooLarge
+ }
+
+ return cert, nil
+}
Commit: 0b615da
Enforce 8192-bit maximum peer RSA key size in parsePeerCertificate (v4 branch)
Mitigation Strategies
- Upgrade Pion DTLS to version v3.1.13 or v4.0.0-rc.6 to enforce the 8192-bit peer RSA modulus limit.
- Disable DTLS client certificate verification (NoClientCert) on public-facing DTLS servers if mutual authentication is not required.
- Enforce network-level rate limiting and fragment size restrictions on incoming DTLS Handshake Certificate records (HandshakeType 11).
Remediation Steps:
- Inspect your project's go.mod file to identify the active version of github.com/pion/dtls.
- Run 'go get github.com/pion/dtls/[email protected]' (or v4.0.0-rc.6 for v4 users) and 'go mod tidy' to pull the patched dependency.
- Rebuild and redeploy all Go binaries and services (such as WebRTC SFUs or gateways) that link against Pion DTLS.
- Verify the fix by running unit tests or checking binary build info via 'go version -m '.
References
- GitHub Security Advisory: GHSA-jp25-wc3w-p9xp
- NVD - CVE-2026-135391
- CVE.org Record: CVE-2026-135391
- Pion DTLS Pull Request #1229
- Fix Commit fa6e8d38a3a61044117628bde1ac8c1318f34379 (v3)
- Fix Commit 0b615da56cf134adba79d75a817e21008cc7c9a5 (v4)
- Pion DTLS Release v3.1.13
- Pion DTLS Release v4.0.0-rc.6
- CVEList V5 Record for CVE-2026-135391
- Wiz Vulnerability Database: CVE-2026-135391
- Shodan CVEDB: CVE-2026-135391
Read the full report for CVE-2026-135391 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.