# GHSA-crjg-w57m-rqqf: DNSJava vulnerable to KeyTrap - Denial-of-Service Algorithmic Complexity Attacks

- Severity: High (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-07-22T17:30:19.000Z
- Modified: 2026-09-10T03:50:16.712Z
- Weaknesses: CWE-770

## Description

### Impact
Users using the `ValidatingResolver` for DNSSEC validation can run into CPU exhaustion with specially crafted DNSSEC-signed zones.

### Patches
Users should upgrade to dnsjava v3.6.0

### Workarounds
Although not recommended, only using a non-validating resolver, will remove the vulnerability. 

### References
https://www.athene-center.de/en/keytrap

(As written by GitHub Advisory Database.)

## Affected

- dnsjava:dnsjava (Maven): from 3.5.0 before 3.6.0
- org.jitsi:dnssecjava (Maven): up to 2.0.0

## Every score

- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/dnsjava/dnsjava/security/advisories/GHSA-crjg-w57m-rqqf> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-50387> (advisory)
- <https://github.com/dnsjava/dnsjava/commit/07ac36a11578cc1bce0cd8ddf2fe568f062aee78> (web)
- <https://github.com/dnsjava/dnsjava/commit/3ddc45ce8cdb5c2274e10b7401416f497694e1cf> (web)
- <https://github.com/advisories/GHSA-8459-gg55-8qjj> (advisory)
- <https://github.com/dnsjava/dnsjava> (package)

## Sources

- GitHub Advisory Database: [GHSA-crjg-w57m-rqqf](https://github.com/advisories/GHSA-crjg-w57m-rqqf), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-crjg-w57m-rqqf · Whole record: https://cve.day/GHSA-crjg-w57m-rqqf.json · Rebuilt by cve.day 2026-11-25T22:56:27.671Z
