All vulnerabilities

Go

CVE-2026-135391

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

Severity
Medium
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Fixed in
3.1.13, 4.0.0-rc.6
Exploit chance
0.6% in the next 30 daysHigher than 49% of CVEs. EPSS by FIRST, 2 Dec 2026
Weakness
Uncontrolled resource consumption (CWE-400)
Also known as
GHSA-jp25-wc3w-p9xp
Sources
OSV.dev and GitHub

Description

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.

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
github.com/pion/dtls/v2Go · osv:Go:github.com/pion/dtls/v2
  • From 2.0.0 up to 2.2.12
github.com/pion/dtls/v3Go · osv:Go:github.com/pion/dtls/v3
  • From 3.0.0 before 3.1.13
github.com/pion/dtls/v4Go · osv:Go:github.com/pion/dtls/v4
  • Every version before 4.0.0-rc.6

Status in Debian

Debian builds fixes into its own packages, so a release is often fixed under an older version number than the one upstream names.

  • 6 vulnerable
PackageDebian releaseStatus
golang-github-pion-dtls-v3sidunstableVulnerableNo fix yet.
14forkytestingVulnerableNo fix yet.
golang-github-pion-dtls.v2sidunstableVulnerableNo fix yet.
14forkytestingVulnerableNo fix yet.
13trixiestableVulnerableNo security update; the fix may come in a point release. Debian: Minor issue
12bookwormoldstableVulnerableNo fix yet.

From Debian's security tracker for CVE-2026-135391 , read in the last 12 hours.

About github.com/pion/dtls/v2

About github.com/pion/dtls/v3

About github.com/pion/dtls/v4

References