Medium severity · published Oct 6, 2023
CVE-2023-42445
Gradle is a build tool with a focus on build automation and support for multi-language development
5.3
CVSS
0.8%
EPSS
No
On KEV
Description
Gradle is a build tool with a focus on build automation and support for multi-language development. In some cases, when Gradle parses XML files, resolving XML external entities is not disabled. Combined with an Out Of Band XXE attack (OOB-XXE), just parsing XML can lead to exfiltration of local text files to a remote server. Gradle parses XML files for several purposes. Most of the time, Gradle parses XML files it generated or were already present locally. Only Ivy XML descriptors and Maven POM files can be fetched from remote repositories and parsed by Gradle. In Gradle 7.6.3 and 8.4, resolving XML external entities has been disabled for all use cases to protect against this vulnerability. Gradle will now refuse to parse XML files that have XML external entities.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
High
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.8% · higher than 56% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GR
Gradle · Gradle
before 7.6.3; 8.0.0 before 8.4.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-42445
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-42445
Release Notes
https://github.com/gradle/gradle/releases/tag/v7.6.3
Release Notes
https://github.com/gradle/gradle/releases/tag/v8.4.0
Vendor Advisory
https://github.com/gradle/gradle/security/advisories/GHSA-mrff-q8qj-xvg8
Third Party Advisory
https://security.netapp.com/advisory/ntap-20231110-0006/
More from Gradle
9.8
CVE-2023-26053
Gradle is a build tool with a focus on build automation and support for multi-language development
9.8
CVE-2019-15052
The HTTP client in Gradle before 5.6 sends authentication credentials originally destined for the configured host
9.8
CVE-2016-6199
ObjectSocketWrapper.java in Gradle 2.12 allows remote attackers to execute arbitrary code via a crafted serialized object
8.1
CVE-2023-35947
Gradle is a build tool with a focus on build automation and support for multi-language development
8.1
CVE-2021-41588
In Gradle Enterprise before 2021.1.3, a crafted request can trigger deserialization of arbitrary unsafe Java objects
