GHSA-crjg-w57m-rqqf: Dnsjava DNSJava Vulnerable To KeyTrap - Vulnerability
HIGHGHSA-crjg-w57m-rqqf is a HIGH (CVSS 6.5) dnsjava vulnerable to keytrap - vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Dnsjava libraries in the Maven ecosystem. The issue involves dnsjava vulnerable to keytrap - denial-of-service algorithmic complexity attacks. Remediation is available by upgrading affected packages to version 3.6.0.
GHSA-crjg-w57m-rqqf at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).
How to Fix GHSA-crjg-w57m-rqqf
To remediate this vulnerability, upgrade all affected Dnsjava dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>dnsjava</groupId>
<artifactId>dnsjava</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>org.jitsi</groupId>
<artifactId>dnssecjava</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=dnsjava
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-crjg-w57m-rqqf, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=dnsjava
Analyze the terminal output to locate any version of Dnsjava in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.6.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=dnsjava command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Dnsjava, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-crjg-w57m-rqqf Affected Dnsjava Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dnsjava:dnsjava
|
Maven |
≥ 3.5.0
< 3.6.0
|
3.6.0
|
|
org.jitsi:dnssecjava
|
Maven |
≤ 2.0.0
|
|
References
Frequently Asked Questions
What is GHSA-crjg-w57m-rqqf?
Which Dnsjava versions are affected?
What version fixes GHSA-crjg-w57m-rqqf?
Is dnsjava affected?
Is dnssecjava affected?
What is the CVSS score of GHSA-crjg-w57m-rqqf?
What CWE is associated with GHSA-crjg-w57m-rqqf?
How can I check Maven dependencies for GHSA-crjg-w57m-rqqf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-crjg-w57m-rqqf",
"modified" : "2024-11-18T16:26:55Z",
"published" : "2024-07-22T17:30:19Z",
"aliases" : [ ],
"summary" : "DNSJava vulnerable to KeyTrap - Denial-of-Service Algorithmic Complexity Attacks",
"details" : "### Impact\nUsers using the `ValidatingResolver` for DNSSEC validation can run into CPU exhaustion with specially crafted DNSSEC-signed zones.\n\n### Patches\nUsers should upgrade to dnsjava v3.6.0\n\n### Workarounds\nAlthough not recommended, only using a non-validating resolver, will remove the vulnerability. \n\n### References\nhttps://www.athene-center.de/en/keytrap\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "dnsjava:dnsjava"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.5.0"
}, {
"fixed" : "3.6.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jitsi:dnssecjava"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dnsjava/dnsjava/security/advisories/GHSA-crjg-w57m-rqqf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50387"
}, {
"type" : "WEB",
"url" : "https://github.com/dnsjava/dnsjava/commit/07ac36a11578cc1bce0cd8ddf2fe568f062aee78"
}, {
"type" : "WEB",
"url" : "https://github.com/dnsjava/dnsjava/commit/3ddc45ce8cdb5c2274e10b7401416f497694e1cf"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-8459-gg55-8qjj"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dnsjava/dnsjava"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-22T17:30:19Z",
"nvd_published_at" : null
}
}