Skip to content
OpenAdvisories
Medium · 5.3 Public exploit CVE-2022-26049 EUVD-2022-6886GHSA-p2f7-9cv7-jjf6

Arbitrary File Write via Archive Extraction (Zip Slip)

Published Sep 11, 2022 · Updated Sep 16, 2024 · Assigned by snyk

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 products

VendorProductAffectedFixed
— com.diffplug.gradle:goomph unspecified – < 3.37.2 3.37.2

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.diffplug.gradle:goomph < 3.37.2 3.37.2 GHSA-p2f7-9cv7-jjf6

References