Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
5.3
CVE-2022-26049: diffplug goomph can write files anywhere via crafted zip
CVE-2022-26049 · published 4 years ago
Summary
The goomph tool from Diffplug can be tricked by a specially crafted zip file to place files outside its intended folder. This could let an attacker replace important system files and potentially run code on your computers. To protect yourself, only use trusted zip files for goomph and update to a version newer than 3.37.2 as soon as possible.
What to do
- Update diffplug com.diffplug.gradle:goomph to version 3.37.2.
- Update diffplug goomph to version 3.37.2 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| maven | diffplug | com.diffplug.gradle:goomph |
< 3.37.2 Fix: upgrade to 3.37.2
|
| – | diffplug | goomph |
< 3.37.2 cpe:2.3:a:diffplug:goomph:*:*:*:*:*:*:*:* |
Original advisory text
Arbitrary File Write via Archive Extraction (Zip Slip)
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.
References
- https://github.com/advisories/GHSA-p2f7-9cv7-jjf6
- https://security.snyk.io/vuln/SNYK-JAVA-COMDIFFPLUGGRADLE-2981040 URL
- https://nvd.nist.gov/vuln/detail/CVE-2022-26049 Vendor Advisory
- https://github.com/diffplug/goomph/commit/25f04f67ba62d9a14104bee13a0a0f2517afb8... Patch
- https://github.com/diffplug/goomph/pull/198 Patch
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/26xxx/CVE-2022-26049... Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker full control (estimated)
Severity
5.3
Medium
Type
CWE-22Path Traversal
Timeline
Published11 Sep 2022
Updated29 Oct 2026
First seen6 Mar 2026
Track software like this
Free during beta