Gradle Shadow: Zip Slip path traversal in ShadowCopyAction — no independent entry-name sanitization
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in com.gradleup.shadow:com.gradleup.shadow.gradle.plugin 9.6.0.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| GradleUp | <9.6.0 | ||
| maven: com.gradleup.shadow:com.gradleup.shadow.gradle.plugin | <9.6.0 | 9.6.0 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket