Maven
CVE-2026-75598
Gradle Shadow: Zip Slip path traversal in ShadowCopyAction — no independent entry-name sanitization
- Severity
- High 8.1
- Published
- 9 Nov 2026
- Last changed
- 9 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 9.6.0
- Exploit chance
- 0.3% in the next 30 daysHigher than 16% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Path traversal (CWE-22)
- Attack
- Over the network · No login needed · Needs someone to click or open something
- Attacker can
- Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H- Also known as
- GHSA-rr8v-fxxf-c986
- Sources
- OSV.dev and GitHub
Description
ShadowCopyAction in the Shadow plugin does not validate or sanitize ZIP entry names before writing them to the output fat JAR. A malicious upstream dependency containing path traversal sequences (e.g. ../../../../tmp/pwned.txt) in entry names will have those entries reproduced verbatim in the output shadow JAR.
The vulnerability exists because Shadow relies entirely on Gradle's ZipFileTree for entry sanitization rather than implementing its own path validation. This means:
- Users on Gradle < 7.6.2 / 8.x < 8.2.0 are directly exploitable
- The produced shadow JAR becomes a Zip Slip weapon against any downstream consumer using unprotected extraction (raw ZipInputStream, older CI tooling, custom Java unpackers)
- If Shadow ever uses a non-ZipFileTree code path, protection disappears silently
Affected file: src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/ShadowCopyAction.kt
Affected software
| Software | Affected versions |
|---|---|
com.gradleup.shadow:com.gradleup.shadow.gradle.pluginMaven · osv:Maven:com.gradleup.shadow:com.gradleup.shadow.gradle.plugin |
|
About com.gradleup.shadow:com.gradleup.shadow.gradle.plugin
This is the only vulnerability in com.gradleup.shadow:com.gradleup.shadow.gradle.plugin in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-75598
- GitHub Advisory Database https://github.com/advisories/GHSA-rr8v-fxxf-c986