CVEfocus › CVE database › CVE-2023-42445

CVE-2023-42445Possible local file exfiltration by XML External entity injection

CVSS 6.8 MediumEPSS 0.9% (higher than 57% of CVEs)Published 2023-10-06Updated 2025-06-16Assigner: GitHub_M

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.

CWE-611

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

5Fix pending
3Under investigation
4Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10gradleFix pendingUBUNTU-CVE-2023-42445
Ubuntu 26.04gradleUnder investigationUBUNTU-CVE-2023-42445
Ubuntu 25.10gradleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-42445
Ubuntu 24.04gradleUnder investigationUBUNTU-CVE-2023-42445
Ubuntu 22.04gradleUnder investigationUBUNTU-CVE-2023-42445
Ubuntu 20.04gradleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-42445
Ubuntu 18.04gradleFix pendingUBUNTU-CVE-2023-42445
Ubuntu 16.04gradleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-42445
Ubuntu 14.04gradleWill not fix
Ubuntu decided not to fix this in this release
Debian 14gradleFix pendingDEBIAN-CVE-2023-42445
Debian 13gradleFix pendingDEBIAN-CVE-2023-42445
Debian 12gradleFix pendingDEBIAN-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.

References

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.