Loading advisory.
Loading advisory.
Gradle Shadow: Zip Slip path traversal in ShadowCopyAction — no independent entry-name sanitization
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.
Published 2026-11-06 17:51 UTC · Modified 2026-11-09 22:00 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| com.gradleup.shadow:com.gradleup.shadow.gradle.plugin | Maven | < 9.6.0 versions 8.3.0, 8.3.1, 8.3.10, 8.3.11, 8.3.2, 8.3.3, 8.3.4, 8.3.5, 8.3.6, 8.3.7, 8.3.8, 8.3.9, 9.0.0, 9.0.0-beta1, 9.0.0-beta10, 9.0.0-beta11, 9.0.0-beta12, 9.0.0-beta13, 9.0.0-beta14, 9.0.0-beta15 and 28 more | 9.6.0 | No single command for Maven. Update to 9.6.0 in your build file. |
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
Create a malicious JAR with path traversal entry:
import zipfile
with zipfile.ZipFile('evil.jar', 'w') as zf:
zf.writestr('../../../../tmp/zipslip_proof.txt', 'pwned')Add as dependency in a shadow project
Run gradle shadowJar
Run unzip -l build/libs/*.jar | grep "\.\."
Traversal entry survives in output JAR
Any tool extracting the shadow JAR with unprotected extraction is subject to arbitrary file overwrite. Users on older Gradle versions are directly vulnerable at build time.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.002 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.002 | 0.003 | v2026.06.15 |