Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious dependency with traversal entry name
-
DeliveryDeveloper adds dependency and runs shadowJar
-
ExploitShadow copies ZIP entry name without sanitization
-
ExecutionDownstream tool extracts fat JAR unprotected
-
ImpactAttacker file written outside destination directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an attacker-controlled dependency archive containing ZIP entry names with traversal sequences (e.g. '../../../../tmp/pwned.txt') that is consumed by a project using the Gradle Shadow plugin prior to 9.6.0, with the shadowJar/fat-JAR task executed. Two distinct impact paths apply: (1) build-time direct exploitation on the build host when running Gradle < 7.6.2 or 8.x < 8.2.0, where Gradle's ZipFileTree does not sanitize entries; and (2) the more general case where the produced shadow JAR is later extracted by a downstream consumer using unprotected extraction (raw ZipInputStream, older CI tooling, or custom Java unpackers), at which point the traversal lands. Limiting factors: a developer must add/consume the malicious dependency and run the build (UI:R), the attack is local to the build/extraction context (AV:L), and the harmful file write only occurs if the extractor lacks path-traversal protection. Critically, upgrading Gradle alone does not universally prevent this because some Shadow paths process dependency archives directly - the complete fix is upgrading Shadow to 9.6.0, as stated by the advisory. |
| Impact | This is a genuine but conditional, medium-severity issue rather than a drop-everything emergency, and the signals are mostly consistent. The CVSS 3.1 base score is 6.3 (Medium) with vector AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N: local attack vector, required user interaction, no privileges, and a scope change reflecting that the harm often lands on a system other than the one running Shadow. There is no CISA KEV listing and no EPSS score supplied, so there is no evidence of widespread automated exploitation; the vuln.today decision label is 'this_month', signalling scheduled remediation rather than act_now/emergency urgency. Offsetting that, the GitHub-published GHSA advisory includes a concrete, reproducible proof-of-concept (a Python snippet that builds a malicious JAR, plus exact reproduction steps), so weaponization is trivial for anyone who already controls a consumed dependency. The practical risk is a supply-chain/Zip-Slip chain: exploitation requires an attacker-controlled dependency AND a downstream consumer that extracts the resulting fat JAR without path-traversal protection, which constrains blast radius but is realistic in CI pipelines and custom unpackers. Note one nuance to verify operationally: the description states upgrading Gradle alone does not universally fix this because some Shadow code paths process dependency archives directly, so the real fix is upgrading Shadow itself to 9.6.0 - relying on a Gradle version bump as a mitigation is unsafe. |
| Exploit ScenarioDerived | An attacker publishes a malicious Maven/Gradle dependency whose ZIP contains an entry named with traversal sequences (e.g. '../../../../tmp/zipslip_proof.txt'). A developer adds that dependency and runs 'gradle shadowJar'; Shadow (< 9.6.0) reproduces the traversal entry name verbatim in the output fat JAR, and when any downstream tool extracts that JAR without path-traversal protection, the attacker-controlled file is written outside the intended directory. A working proof-of-concept and full reproduction steps are published in the GHSA advisory, and on older Gradle versions the file write can also occur at build time on the build host. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Gradle Shadow plugin builds fat/uber JARs and, prior to 9.6.0, does not independently validate ZIP entry names before writing them to its output archive, so a malicious dependency can propagate path traversal ('../') entry names into the produced shadow JAR. The trigger is conditional: exploitation requires a developer to consume an attacker-controlled dependency and run the shadowJar task, and the harmful file write occurs only if the resulting archive is later extracted by a tool lacking path traversal protection - although builds running Gradle < 7.6.2 or 8.x < 8.2.0 are directly exploitable at build time because Gradle's ZipFileTree does not sanitize those entries. The vendor advisory and the 9.6.0 commit diff include a proof-of-concept procedure (crafting a JAR with a traversal entry and confirming the entry survives in the output), so public PoC material exists but is not verified as working exploit code; there is no KEV entry and no EPSS signal in the supplied data, and the assessed severity is medium (CVSS 6.3, AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N).
RemediationAI
Vendor-released patch: upgrade the Gradle Shadow plugin to version 9.6.0, which adds explicit ZIP entry-name validation in the internal zipEntry helper and throws on '..' path segments (release: https://github.com/GradleUp/shadow/releases/tag/9.6.0, commit: https://github.com/GradleUp/shadow/commit/0c2744fcc050e34a084f5131d5e167b13c342bfd, advisory: https://github.com/GradleUp/shadow/security/advisories/GHSA-rr8v-fxxf-c986). Upgrading Gradle alone is not a complete fix, because some Shadow implementations process dependency archives directly rather than through Gradle's sanitizing ZipFileTree; only the plugin upgrade covers those paths. As compensating measures while upgrading, restrict dependency resolution to trusted repositories and pin/verify dependency coordinates (this narrows who can supply a malicious archive but does not remove the flaw for already-trusted compromised artifacts), and ensure every consumer that extracts the produced shadow JAR uses an extractor with path traversal protection - audit CI tooling, raw ZipInputStream based unpackers and custom Java extractors, since those are the point where the preserved traversal entry turns into an out-of-destination file write.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic Zip Slip (CWE-22, improper limitation of a pathname to a restricted directory) in Shadow's ShadowCopyAction, at src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/ShadowCopyAction.kt. Shadow relies entirely on Gradle's ZipFileTree for ZIP entry sanitization instead of implementing its own path validation, so when a dependency archive is processed through a code path that does not reject traversal sequences, the entry names are reproduced verbatim in the output fat JAR. The upstream fix in commit 0c2744fcc050e34a084f5131d5e167b13c342bfd adds a check in the internal zipEntry helper in Utils.kt that splits the entry name on '/' and '\\' and throws a GradleException when any segment equals '..' - notably it rejects exact '..' segments only, leaving legitimate names such as 'assets/icon..png' valid, as covered by the new ZipEntryValidationTest. Because some affected Shadow implementations process dependency archives directly rather than via Gradle's sanitizing ZipFileTree, upgrading Gradle alone does not universally remove the weakness; the complete remediation is upgrading the Shadow plugin itself to 9.6.0.
Know when Gradle gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
Build-time/local vector (AV:L) with no attacker privileges but requiring a developer to add a dependency and run the build (UI:R); scope changes as the written file affects a downstream extractor, yielding integrity-only impact (I:H).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
ObjectSocketWrapper.java in Gradle 2.12 allows remote attackers to execute arbitrary code via a crafted serialized objec
The HTTP client in Gradle before 5.6 sends authentication credentials originally destined for the configured host. Rated
Gradle is a build tool with a focus on build automation. Rated high severity (CVSS 7.5), this vulnerability is remotely
In Gradle before version 7.0, on Unix-like systems, the system temporary directory can be created with open permissions
Shell command injection in Nx's @nx/maven and @nx/gradle project-graph analyzers lets an attacker who can write nx.json
In Gradle from version 5.1 and before version 7.0 there is a vulnerability which can lead to information disclosure and/
In Gradle Enterprise before 2023.1, a remote attacker may be able to gain access to a new installation (in certain insta
The PGP signing plugin in Gradle before 6.0 relies on the SHA-1 algorithm, which might allow an attacker to replace an a
Gradle is a build tool with a focus on build automation and support for multi-language development. Rated critical sever
Gradle Enterprise before 2022.1 allows remote code execution if the installation process did not specify an initial conf
In Gradle Enterprise before 2021.3 (and Enterprise Build Cache Node before 10.0), there is potential cache poisoning and
In Gradle Enterprise before 2018.5.2, Build Cache Nodes would reflect the configured password back when viewing the HTML
EUVD-2026-118393
GHSA-rr8v-fxxf-c986
NVD
CVE.org
EPSS
Exploit-DB