CVE details
CVE-2023-42445
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.
Affected ports (4)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| devel/gradle5 | gradle5 | 5.0_3 | unaddressed | yuri@FreeBSD.org |
| devel/gradle6 | gradle6 | 6.9.4_2 | unaddressed | ports@FreeBSD.org |
| devel/gradle62 | gradle62 | 6.2.2_3 | unaddressed | yuri@FreeBSD.org |
| devel/gradle761 | gradle761 | 7.6.1_2 | unaddressed | ports@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>gradle5</name>
<range><lt>7.6.3</lt></range>
</package>
<package>
<name>gradle6</name>
<range><lt>7.6.3</lt></range>
</package>
<package>
<name>gradle62</name>
<range><lt>7.6.3</lt></range>
</package>
<package>
<name>gradle761</name>
<range><lt>7.6.3</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>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.</p>
</body>
</description>
<references>
<cvename>CVE-2023-42445</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2023-42445</url>
</references>
<dates>
<discovery>2023-10-06</discovery>
<entry>2026-10-25</entry>
</dates>
</vuln>