CVE-2022-26049: com.diffplug.gradle - Path Traversal
- Cve: CVE-2022-26049
- Name: com.diffplug.gradle - Path Traversal
- 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.
- Impact: Attackers can overwrite arbitrary files, potentially leading to remote code execution on the system.
- Remediation: Update to version 3.37.2 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write
- Requirement type: user_interaction
- Requirements: Attacker needs to provide a malicious zip file as bootstrap
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.02534
- Epss percentile: 0.85334
- Assignee: [email protected]
- Published at: 2022-09-11T14:15:08Z
- Age in days: 1535
- Modified at: 2026-06-17T04:34:36Z
- Patch available: yes
- Public exploits total: 2
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-26049
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://security.snyk.io/vuln/SNYK-JAVA-COMDIFFPLUGGRADLE-2981040 | nvd | 2022-09-11 |
| https://github.com/shoucheng3/diffplug__goomph_CVE-2022-26049_3-37-1 | poc-in-github | 2025-08-17 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/diffplug/goomph/commit/25f04f67ba62d9a14104bee13a0a0f2517afb8c8 | Patch, Third Party Advisory |
| https://github.com/diffplug/goomph/pull/198 | Patch, Third Party Advisory |
| https://security.snyk.io/vuln/SNYK-JAVA-COMDIFFPLUGGRADLE-2981040 | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| diffplug:goomph | < 3.37.2 | no | nvd | /v1/products/diffplug/goomph |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| diffplug/goomph | commit, pull | yes | /v1/repositories/diffplug/goomph |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2022-09-11
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts