CVE-2023-42445
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGradle 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGradle had an XXE vulnerability where XML parsing did not disable external entity resolution, allowing malicious Ivy XML descriptors or Maven POM files fetched from remote repositories to potentially exfiltrate local text files via OOB-XXE attacks. Gradle 7.6.3 and later versions disable external entity resolution and refuse to parse XML files containing XXE.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 7.6.3>= 8.0.0, < 8.4.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine installed Gradle versionRun 'gradle --version' or check the gradle-wrapper.properties file in the gradle/wrapper/ directory for the distributionUrl propertyAffected if The version shown is less than 7.6.3, or is between 8.0.0 and 8.4.0 exclusive (for example 8.0.0, 8.1, 8.2, or 8.3)
-
Identify remote repository usageInspect build.gradle, build.gradle.kts, settings.gradle, or settings.gradle.kts for remote repository definitions such as maven { url }, mavenCentral(), or other remote repository URLsAffected if The project configures remote repositories (Maven or Ivy) from which dependencies are fetched
-
Confirm XML dependency parsingReview the project's dependencies and build configuration to verify that Ivy XML descriptors or Maven POM files are fetched from remote repositories during build executionAffected if The build process fetches and parses XML-based dependency metadata (Ivy or Maven POMs) from remote repositories
You are affected if your installed Gradle version is less than 7.6.3 or falls between 8.0.0 and 8.4.0, AND your project fetches dependencies from remote repositories that could supply malicious Ivy or Maven XML files.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped7.6.38.4.0
Upgrade to Gradle 7.6.3, 8.4, or later which disables XML external entity resolution and refuses to parse XML files with entities.
Gradle 7.6.3 (for 7.x users) or Gradle 8.4 (for 8.x users)
- 1. Check current Gradle version by running `gradle --version`
- 2. If using Gradle 7.x line: upgrade to version 7.6.3 or later
- 3. If using Gradle 8.x line: upgrade to version 8.4 or later
- 4. Update Gradle Wrapper properties file (gradle/wrapper/gradle-wrapper.properties) to point to the new version
- 5. Run `gradle wrapper` to update wrapper scripts
- 6. Verify the upgrade completed successfully with `gradle --version`
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,448.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-42445 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-42445 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data