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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- 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