Vulnerability GHSA-jp25-wc3w-p9xp

Medium Risk
MEDIUM RISK
CVSS Score: 6.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
14 hours ago
December 02, 2026 at 10:40 PM UTC
Pion DTLS: Oversized peer RSA keys allow excessive CPU consumption during DTLS handshakes
>=2.0.0 <=2.2.12
>=2.0.0 <=2.2.12

Summary

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

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.

Timeline

Published
14 hours ago
December 02, 2026 at 10:40 PM UTC
Last Modified
14 hours ago
December 02, 2026 at 10:45 PM UTC