{"id":"GHSA-jp25-wc3w-p9xp","summary":"Pion DTLS: Oversized peer RSA keys allow excessive CPU consumption during DTLS handshakes","details":"### Summary\n\nPion 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.\n\nDiscovered by Anthropic's OSS Scanner, tracking ID `3X1BUF5Y`.\n\n### Details\n\nThe vulnerable implementation parsed peer certificates and passed their RSA public keys directly to handshake signature verification without checking the modulus size.\n\nAn 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.\nThe affected paths include verification of ServerKeyExchange and CertificateVerify. Peer certificate chains also lacked an explicit RSA key-size limit.\n\n### Impact\n\nRepeated or concurrent malicious handshakes can consume substantial CPU resources, reducing service availability and delaying legitimate connections.\nWebRTC 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.\n\nfixed by https://github.com/pion/dtls/commit/fa6e8d38a3a61044117628bde1ac8c1318f34379 by rejecting peer RSA public keys larger than 8,192 bits like `crypto/tls`.","aliases":["CVE-2026-135391"],"modified":"2026-12-02T22:45:04.320209565Z","published":"2026-12-02T22:40:03Z","database_specific":{"cwe_ids":["CWE-400"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-12-02T22:40:03Z","nvd_published_at":"2026-11-24T17:18:24Z"},"references":[{"type":"WEB","url":"https://github.com/pion/dtls/security/advisories/GHSA-jp25-wc3w-p9xp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135391"},{"type":"WEB","url":"https://github.com/pion/dtls/pull/1229"},{"type":"WEB","url":"https://github.com/pion/dtls/commit/0b615da56cf134adba79d75a817e21008cc7c9a5"},{"type":"WEB","url":"https://github.com/pion/dtls/commit/fa6e8d38a3a61044117628bde1ac8c1318f34379"},{"type":"PACKAGE","url":"https://github.com/pion/dtls"},{"type":"WEB","url":"https://github.com/pion/dtls/releases/tag/v3.1.13"},{"type":"WEB","url":"https://github.com/pion/dtls/releases/tag/v4.0.0-rc.6"}],"affected":[{"package":{"name":"github.com/pion/dtls/v3","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v3"},"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"}},{"package":{"name":"github.com/pion/dtls/v2","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v2"},"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"}},{"package":{"name":"github.com/pion/dtls/v4","ecosystem":"Go","purl":"pkg:golang/github.com/pion/dtls/v4"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"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"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}