CVE-2023-42445 in Gradle
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 remot...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Gradle | Gradle | < 7.6.3 ≥ 8.0.0, < 8.4.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-42445 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-055474-M |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| Published | 2023-10-06 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-611: CWE-611
Related attack patterns (CAPEC)
CAPEC-221 Data Serialization External Entities Blowup via CWE-611
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2023-42445 affects Gradle due to improper handling of XML external entities, which can lead to Out Of Band XXE attacks, potentially exfiltrating local files to a remote server.
The vulnerability arises when Gradle parses XML files without disabling the resolution of XML external entities. An attacker can exploit this by crafting malicious XML files that, when processed by Gradle, can exfiltrate sensitive information from the local system to a remote server.
Questions
What is CVE-2023-42445?
CVE-2023-42445 affects Gradle due to improper handling of XML external entities, which can lead to Out Of Band XXE attacks, potentially exfiltrating local files to a remote server.
What is the CVSS score for CVE-2023-42445?
CVE-2023-42445 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N. EPSS: 0.9%.
Is CVE-2023-42445 actively exploited?
No confirmed active exploitation of CVE-2023-42445 as of 2026-09-25.
How do I remediate CVE-2023-42445?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2023-42445?
CVE-2023-42445 affects Gradle Gradle.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Gradle","product":"Gradle","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.