cvelo
P3 · MediumCVSS 6.9EPSS 0.5%

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

  • CVE-2026-135391
  • GHSA-jp25-wc3w-p9xp

Description

Show the whole description

### 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`.

Text from the GitHub Advisory record.

Affected

  • github.com/pion/dtls/v2Go

    • from 2.0.0, up to 2.2.12
  • github.com/pion/dtls/v3Go

    • from 3.0.0, fixed in 3.1.13
  • github.com/pion/dtls/v4Go

    • all versions, fixed in 4.0.0-rc.6

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.