Vulnerability · Published Sep 11, 2022 · Assigned by snyk

CVE-2022-26049Arbitrary File Write via Archive Extraction (Zip Slip)

Medium 5.3

In plain English

A medium-severity security flaw in com.diffplug.gradle:goomph. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.5% (higher than 85% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)2.5%top 15.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

This affects the package com.diffplug.gradle:goomph before 3.37.2. It allows a malicious zip file to potentially break out of the expected destination directory, writing contents into arbitrary locations on the file system. Overwriting certain files/directories could allow an attacker to achieve remote code execution on a target system by exploiting this vulnerability. **Note:** This could have allowed a malicious zip file to extract itself into an arbitrary directory. The only file that Goomph extracts is the p2 bootstrapper and eclipse metadata files hosted at eclipse.org, which are not malicious, so the only way this vulnerability could have affected you is if you had set a custom bootstrap zip, and that zip was malicious.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavencom.diffplug.gradle:goomph3.37.2GHSA-p2f7-9cv7-jjf6

Affected products (as reported)

VendorProductVersions
n/a com.diffplug.gradle:goomph unspecified – before 3.37.2

References