Skip to main content

Gradle Shadow EUVDEUVD-2026-118393

| CVE-2026-75598 MEDIUM
Path Traversal (CWE-22)
2026-11-06 GitHub_M GHSA-rr8v-fxxf-c986
6.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious dependency with traversal entry name
  2. Delivery
    Developer adds dependency and runs shadowJar
  3. Exploit
    Shadow copies ZIP entry name without sanitization
  4. Execution
    Downstream tool extracts fat JAR unprotected
  5. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

shadow < 9.6.0

Affected Packages

maven com.gradleup.shadow:com.gradleup.shadow.gradle.plugin fix: 9.6.0
euvd shadow fix: 9.6.0

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

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
vuln.today AI 6.3 MEDIUM

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).

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
Nov 06, 2026 - 19:02 EUVD

DescriptionCVE.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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Medium
very popular Gradle plugin, but limited to JVM build environments
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Gradle

View all
CVE-2016-6199 CRITICAL POC
9.8 Feb 07

ObjectSocketWrapper.java in Gradle 2.12 allows remote attackers to execute arbitrary code via a crafted serialized objec

CVE-2019-15052 CRITICAL POC
9.8 Aug 14

The HTTP client in Gradle before 5.6 sends authentication credentials originally destined for the configured host. Rated

CVE-2021-32751 HIGH POC
7.5 Jul 20

Gradle is a build tool with a focus on build automation. Rated high severity (CVSS 7.5), this vulnerability is remotely

CVE-2021-29428 HIGH POC
7.8 Apr 13

In Gradle before version 7.0, on Unix-like systems, the system temporary directory can be created with open permissions

CVE-2026-119282 HIGH POC
7.3 Oct 29

Shell command injection in Nx's @nx/maven and @nx/gradle project-graph analyzers lets an attacker who can write nx.json

CVE-2021-29427 HIGH POC
7.2 Apr 13

In Gradle from version 5.1 and before version 7.0 there is a vulnerability which can lead to information disclosure and/

CVE-2023-49238 CRITICAL
9.8 Jan 09

In Gradle Enterprise before 2023.1, a remote attacker may be able to gain access to a new installation (in certain insta

CVE-2019-16370 MEDIUM POC
5.9 Sep 16

The PGP signing plugin in Gradle before 6.0 relies on the SHA-1 algorithm, which might allow an attacker to replace an a

CVE-2023-26053 CRITICAL
9.8 Mar 02

Gradle is a build tool with a focus on build automation and support for multi-language development. Rated critical sever

CVE-2022-27919 CRITICAL
9.8 Mar 25

Gradle Enterprise before 2022.1 allows remote code execution if the installation process did not specify an initial conf

CVE-2021-41589 CRITICAL
9.8 Oct 27

In Gradle Enterprise before 2021.3 (and Enterprise Build Cache Node before 10.0), there is potential cache poisoning and

CVE-2019-11403 CRITICAL
9.8 Apr 22

In Gradle Enterprise before 2018.5.2, Build Cache Nodes would reflect the configured password back when viewing the HTML

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy