{"id":"GHSA-crjg-w57m-rqqf","aliases":[],"status":"published","title":"DNSJava vulnerable to KeyTrap - Denial-of-Service Algorithmic Complexity Attacks","description":"### Impact\nUsers using the `ValidatingResolver` for DNSSEC validation can run into CPU exhaustion with specially crafted DNSSEC-signed zones.\n\n### Patches\nUsers should upgrade to dnsjava v3.6.0\n\n### Workarounds\nAlthough not recommended, only using a non-validating resolver, will remove the vulnerability. \n\n### References\nhttps://www.athene-center.de/en/keytrap","severity":{"version":"4.0","score":7.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-770"],"published":"2024-07-22T17:30:19Z","modified":"2026-09-10T03:50:16Z","fixes":[{"ecosystem":"Maven","package":"dnsjava:dnsjava","fixed_in":["3.6.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"dnsjava:dnsjava","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"fixed":"3.6.0"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.jitsi:dnssecjava","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.0.0"}]}]},{"source":"osv","ecosystem":"Maven","package":"dnsjava:dnsjava","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"fixed":"3.6.0"}]}],"versions":["3.5.0","3.5.1","3.5.2","3.5.3"]},{"source":"osv","ecosystem":"Maven","package":"org.jitsi:dnssecjava","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.0.0"}]}],"versions":["1.0","1.1","1.1.1","1.1.2","1.1.3","1.2.0","2.0.0"]}],"references":[{"url":"https://github.com/dnsjava/dnsjava/security/advisories/GHSA-crjg-w57m-rqqf","tags":["web"]},{"url":"https://github.com/dnsjava/dnsjava/commit/07ac36a11578cc1bce0cd8ddf2fe568f062aee78","tags":["web"]},{"url":"https://github.com/dnsjava/dnsjava/commit/3ddc45ce8cdb5c2274e10b7401416f497694e1cf","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50387","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-8459-gg55-8qjj","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-crjg-w57m-rqqf"},{"url":"https://github.com/dnsjava/dnsjava","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-crjg-w57m-rqqf","title":"DNSJava vulnerable to KeyTrap - Denial-of-Service Algorithmic Complexity Attacks","description":"### Impact\nUsers using the `ValidatingResolver` for DNSSEC validation can run into CPU exhaustion with specially crafted DNSSEC-signed zones.\n\n### Patches\nUsers should upgrade to dnsjava v3.6.0\n\n### Workarounds\nAlthough not recommended, only using a non-validating resolver, will remove the vulnerability. \n\n### References\nhttps://www.athene-center.de/en/keytrap\n","status":"published","published":"2024-07-22T17:30:19Z","modified":"2024-11-18T16:26:56Z","cvss":[{"version":"4.0","score":7.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T14:38:20.012356Z"}],"osv":[{"id":"GHSA-crjg-w57m-rqqf","title":"DNSJava vulnerable to KeyTrap - Denial-of-Service Algorithmic Complexity Attacks","description":"### Impact\nUsers using the `ValidatingResolver` for DNSSEC validation can run into CPU exhaustion with specially crafted DNSSEC-signed zones.\n\n### Patches\nUsers should upgrade to dnsjava v3.6.0\n\n### Workarounds\nAlthough not recommended, only using a non-validating resolver, will remove the vulnerability. \n\n### References\nhttps://www.athene-center.de/en/keytrap\n","status":"published","published":"2024-07-22T17:30:19Z","modified":"2026-09-10T03:50:16.712962161Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"},{"version":"4.0","score":7.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T15:46:45.28161Z"}]}}
