GHSA-jp25-wc3w-p9xp

Suggest an improvement
Source
https://github.com/advisories/GHSA-jp25-wc3w-p9xp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-jp25-wc3w-p9xp/GHSA-jp25-wc3w-p9xp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jp25-wc3w-p9xp
Aliases
Published
2026-12-02T22:40:03Z
Modified
2026-12-02T22:45:04Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-400"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-12-02T22:40:03Z",
    "nvd_published_at":  "2026-11-24T17:18:24Z",
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/pion/dtls/v3

Package

Name
github.com/pion/dtls/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/pion/dtls/v3

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.1.13

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-jp25-wc3w-p9xp/GHSA-jp25-wc3w-p9xp.json"

Go / github.com/pion/dtls/v2

Package

Name
github.com/pion/dtls/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/pion/dtls/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Last Affected
2.2.12

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-jp25-wc3w-p9xp/GHSA-jp25-wc3w-p9xp.json"

Go / github.com/pion/dtls/v4

Package

Name
github.com/pion/dtls/v4
View open source insights on deps.dev
Purl
pkg:golang/github.com/pion/dtls/v4

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.0.0-rc.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-jp25-wc3w-p9xp/GHSA-jp25-wc3w-p9xp.json"