CVE-2026-75598: Gradle Shadow: Zip Slip path traversal in ShadowCopyAction - no independent entry-name sanitization
Published 2026-11-09 · Updated 2026-11-09 · Also known as GHSA-rr8v-fxxf-c986
Summary
The Gradle Shadow plugin's ShadowCopyAction does not sanitize ZIP entry names, allowing path traversal (Zip Slip) entries to be written into the shadow JAR. Projects using Shadow versions before 9.6.0 are vulnerable to arbitrary file overwrite when the resulting JAR is extracted by downstream tools.
Who is affected
If a dependency contains a ZIP entry with path traversal sequences (e.g., `../../../../tmp/pwned.txt`), the Shadow plugin will copy that entry unchanged into the generated fat JAR. Downstream consumers that extract the JAR without proper ZIP safety (e.g., raw ZipInputStream or older CI tooling) can be forced to overwrite arbitrary files on the filesystem. The vulnerability is present for all Shadow plugin versions from the initial release up to, but not including, version 9.6.0. Users on Gradle versions older than 7.6.2 (Gradle 7) or 8.x before 8.2.0 also lack additional protection.
Exploitability
The CVSS vector indicates a remotely exploitable flaw with low attack complexity, no required privileges, and user interaction, resulting in high impact to integrity and availability but no confidentiality loss. The EPSS score of 0.001 (0.035 percentile) reflects a very low probability of exploitation in the wild. Since the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, there is no confirmation of active exploitation.
Remediation
- Upgrade the Shadow plugin to version 9.6.0 or later.
- Verify the plugin version in the Gradle build script (e.g., `plugins { id 'com.gradle.shadow' version 'X.Y.Z' }`) and update the dependency to a fixed version.
How to check your project
- - Check the Shadow plugin version declared in the Gradle build file; if the version is less than 9.6.0, the project is vulnerable.
- - Inspect the resolved plugin dependency via `gradle dependencies` or the Maven coordinates `com.gradleup.shadow:com.gradleup.shadow.gradle.plugin` to confirm the version.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Maven | com.gradleup.shadow:com.gradleup.shadow.gradle.plugin |
>= 0, < 9.6.0 | 9.6.0 | - |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | High |
| Availability | High |
FAQ
What is Zip Slip?
Zip Slip is a path traversal vulnerability in ZIP archives where entries containing sequences like `../` can cause files to be written outside the intended extraction directory.
How can I confirm if my Shadow JAR contains unsafe entries?
Run a command such as `unzip -l build/libs/*.jar` and look for entries that contain `..` sequences; their presence indicates a potential Zip Slip vulnerability.
Why does upgrading to Shadow 9.6.0 fix the issue?
Version 9.6.0 introduces independent entry-name sanitization in ShadowCopyAction, which validates and blocks traversal sequences before writing entries to the output JAR.
Original advisory description
References
- WEB https://github.com/GradleUp/shadow/security/advisories/GHSA-rr8v-fxxf-c986
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-75598
- WEB https://github.com/GradleUp/shadow/commit/0c2744fcc050e34a084f5131d5e167b13c342bfd
- PACKAGE https://github.com/GradleUp/shadow
- WEB https://github.com/GradleUp/shadow/releases/tag/9.6.0
Source records: GHSA-rr8v-fxxf-c986 (OSV.dev) · EPSS by FIRST, 2026-11-26.