Description
The Gradle Shadow plugin creates fat or uber JARs and supports file transformation and package relocation. Prior to version 9.6.0, Shadow does not independently validate ZIP entry names before writing them to its output archive. A malicious dependency can cause traversal entry names to be preserved when the applicable archive-processing path does not reject them. Some affected Shadow implementations process dependency archives directly, so upgrading Gradle alone does not universally prevent this behavior. If the resulting archive is extracted without path traversal protection, attacker-controlled files can be written outside the intended destination. This issue is fixed in version 9.6.0.
Published: 2026-11-06
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: Path Traversal in Output JAR
Action: Apply Patch
AI Analysis

Impact

The Gradle Shadow plugin, used to build fat or uber JARs, failed to independently sanitize ZIP entry names before adding them to an output archive until version 9.6.0. This deficiency allows a malicious dependency to supply entry names that contain directory traversal components, resulting in those files being written outside the intended destination when the archive is extracted without protection. Consequently, an attacker can achieve arbitrary file write on the target system, compromising file integrity and potentially exposing sensitive data.

Affected Systems

The vulnerability affects the GradleUp:shadow plugin in all releases prior to 9.6.0. Building projects that depend on versions earlier than 9.6.0 and rely on the plugin to process dependency archives can expose the application to this flaw. Merely updating Gradle itself does not mitigate the issue; the plugin version must be updated.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity. No EPSS information is available, and the flaw is not listed in CISA’s KEV catalog, suggesting limited publicly known exploitation. Attackers would need to supply a crafted dependency jar containing traversal entry names, and the resulting archive would have to be extracted by a process that does not enforce path‑traversal protection. If successful, the attacker can write files outside the intended directory, enabling further compromise such as overwriting configuration files or inserting malicious code.

Generated by OpenCVE AI on November 6, 2026 at 19:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Gradle Shadow plugin to version 9.6.0 or newer to enable independent ZIP entry name validation.
  • If an upgrade is not possible at this time, ensure that any extracted JARs are processed through a path‑traversal safe extractor that verifies entry names before extraction.
  • Minimize the use of third‑party dependencies that might contain malicious ZIP entries and verify the integrity of all dependency artifacts before inclusion in the build.

Generated by OpenCVE AI on November 6, 2026 at 19:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Gradleup
Gradleup shadow
Vendors & Products Gradleup
Gradleup shadow

Fri, 06 Nov 2026 18:00:00 +0000

Type Values Removed Values Added
Description The Gradle Shadow plugin creates fat or uber JARs and supports file transformation and package relocation. Prior to version 9.6.0, Shadow does not independently validate ZIP entry names before writing them to its output archive. A malicious dependency can cause traversal entry names to be preserved when the applicable archive-processing path does not reject them. Some affected Shadow implementations process dependency archives directly, so upgrading Gradle alone does not universally prevent this behavior. If the resulting archive is extracted without path traversal protection, attacker-controlled files can be written outside the intended destination. This issue is fixed in version 9.6.0.
Title Gradle Shadow: Zip Slip path traversal in ShadowCopyAction — no independent entry-name sanitization
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-06T17:51:29.813Z

Reserved: 2026-08-17T23:49:03.450Z

Link: CVE-2026-75598

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T18:18:18.880

Modified: 2026-11-06T18:18:18.880

Link: CVE-2026-75598

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T21:12:44Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')