# GHSA-mmwx-rj87-vfgr: DNSJava affected by KeyTrap - NSEC3 closest encloser proof can exhaust CPU resources

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/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-22T14:46:59.000Z
- Modified: 2026-09-10T03:50:16.863Z
- Weaknesses: CWE-400

## 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:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/dnsjava/dnsjava/security/advisories/GHSA-mmwx-rj87-vfgr> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-50868> (advisory)
- <https://github.com/dnsjava/dnsjava/commit/711af79be3214f52daa5c846b95766dc0a075116> (web)
- <https://github.com/advisories/GHSA-pv4h-p8jr-6cv2> (advisory)
- <https://github.com/dnsjava/dnsjava> (package)

## Sources

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

---

Page: https://cve.day/GHSA-mmwx-rj87-vfgr · Whole record: https://cve.day/GHSA-mmwx-rj87-vfgr.json · Rebuilt by cve.day 2026-11-25T22:56:28.425Z
