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

Not scored Published

Attackers can cause CPU exhaustion in applications using DNSJava's ValidatingResolver by sending specially crafted DNSSEC-signed zones.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-crjg-w57m-rqqf?

GHSA-crjg-w57m-rqqf is a denial of service vulnerability in dnsjava:dnsjava, published on 22 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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

Which versions are affected by GHSA-crjg-w57m-rqqf?

4 open source packages ship an affected version, including dnsjava:dnsjava and org.jitsi:dnssecjava.

PackageAffectedFixed in
dnsjava:dnsjava MavenFrom 3.5.03.6.0
dnsjava:dnsjava MavenFrom 3.5.03.6.0
org.jitsi:dnssecjava MavenAll versions to 2.0.0None
org.jitsi:dnssecjava MavenAll versions to 2.0.0None

How do I fix GHSA-crjg-w57m-rqqf?

Upgrade dnsjava:dnsjava to 3.6.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is GHSA-crjg-w57m-rqqf being exploited?

There is no known exploitation of GHSA-crjg-w57m-rqqf in the wild and no public exploit code.

Sources

Is GHSA-crjg-w57m-rqqf in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free