CVE-2022-26049 json
Arbitrary File Write via Archive Extraction (Zip Slip)
published 2022-09-11 4 y ago modified 2026-09-10 1 mo ago also GHSA-p2f7-9cv7-jjf6 , EUVD-2022-6886
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven com.diffplug.gradle:goomph 3.37.2
- n/a com.diffplug.gradle:goomph 3.37.2
- github.com/diffplug/goomph@25f04f6 commit
- github.com/diffplug/goomph#198 pull request
Exploit prediction
2.53% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JAVA-COMDIFFPLUGGRADLE-2981040 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.diffplug.gradle:goomph | <3.37.2 |
3.37.2 |
Affected products
- n/a com.diffplug.gradle:goomph
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/diffplug/goomph/pull/198
web, patch, third-party-advisory
-
github.com
/diffplug/goomph/commit/25f04f67ba62d9a14104bee13a0a0f2517afb8c8
web, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JAVA-COMDIFFPLUGGRADLE-2981040
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-26049
advisory
Sources
- CVE List CVE-2022-26049
- GitHub Advisory GHSA-p2f7-9cv7-jjf6
- NVD CVE-2022-26049
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.