Command Injection Affecting org.apache.maven.shared:maven-shared-utils package, versions [,3.3.3)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.26% (90th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHEMAVENSHARED-570592
  • published22 Jun 2020
  • disclosed29 May 2020
  • creditCharles Duffy

Introduced: 29 May 2020

CVE-2022-29599  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade org.apache.maven.shared:maven-shared-utils to version 3.3.3 or higher.

Overview

org.apache.maven.shared:maven-shared-utils is a functional replacement for plexus-utils in Maven.

Affected versions of this package are vulnerable to Command Injection. The Commandline class can emit double-quoted strings without proper escaping, allowing shell injection attacks. The BourneShell class should unconditionally single-quote emitted strings (including the name of the command itself being quoted), with {{'"'"'}} used for embedded single quotes, for maximum safety across shells implementing a superset of POSIX quoting rules.

This is a similar issue to SNYK-JAVA-ORGCODEHAUSPLEXUS-31522

CVSS Scores

version 3.1