Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.diffplug.gradle/goomph
  4. ›
  5. CVE-2022-26049

CVE-2022-26049: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

September 11, 2022 (updated September 16, 2022)

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

  • github.com/advisories/GHSA-p2f7-9cv7-jjf6
  • github.com/diffplug/goomph/commit/25f04f67ba62d9a14104bee13a0a0f2517afb8c8
  • github.com/diffplug/goomph/pull/198
  • nvd.nist.gov/vuln/detail/CVE-2022-26049
  • security.snyk.io/vuln/SNYK-JAVA-COMDIFFPLUGGRADLE-2981040

Code Behaviors & Features

Detect and mitigate CVE-2022-26049 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.37.2

Fixed versions

  • 3.37.2

Solution

Upgrade to version 3.37.2 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/com.diffplug.gradle/goomph/CVE-2022-26049.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:20 +0000.