Skip to content
OpenAdvisories
Medium · 6.5 GHSA-mmwx-rj87-vfgr

DNSJava affected by KeyTrap - NSEC3 closest encloser proof can exhaust CPU resources

Published Jul 22, 2024 · Updated Sep 10, 2026 · Assigned by GHSA

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

Affected packages

EcosystemPackageAffectedFixedRecord
Maven dnsjava:dnsjava >= 3.5.0, < 3.6.0 3.6.0 GHSA-mmwx-rj87-vfgr
Maven org.jitsi:dnssecjava <= 2.0.0 — GHSA-mmwx-rj87-vfgr

References