CVE-2023-42445Possible local file exfiltration by XML External entity injection
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | gradle | Fix pending | UBUNTU-CVE-2023-42445 | |
| Ubuntu 26.04 | gradle | Under investigation | UBUNTU-CVE-2023-42445 | |
| Ubuntu 25.10 | gradle | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-42445 | |
| Ubuntu 24.04 | gradle | Under investigation | UBUNTU-CVE-2023-42445 | |
| Ubuntu 22.04 | gradle | Under investigation | UBUNTU-CVE-2023-42445 | |
| Ubuntu 20.04 | gradle | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-42445 | |
| Ubuntu 18.04 | gradle | Fix pending | UBUNTU-CVE-2023-42445 | |
| Ubuntu 16.04 | gradle | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-42445 | |
| Ubuntu 14.04 | gradle | Will not fix Ubuntu decided not to fix this in this release | ||
| Debian 14 | gradle | Fix pending | DEBIAN-CVE-2023-42445 | |
| Debian 13 | gradle | Fix pending | DEBIAN-CVE-2023-42445 | |
| Debian 12 | gradle | Fix pending | DEBIAN-CVE-2023-42445 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- gradle: affected: < 8.4, < 7.6.3
References
- https://github.com/gradle/gradle/security/advisories/GHSA-mrff-q8qj-xvg8
- https://github.com/gradle/gradle/releases/tag/v7.6.3
- https://github.com/gradle/gradle/releases/tag/v8.4.0
- https://security.netapp.com/advisory/ntap-20231110-0006/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.