CVE-2022-29599: Command injection in Apache Maven maven-shared-utils
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.59607%
CWE
Published
5/24/2022
Updated
6/30/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.maven.shared:maven-shared-utils | maven | < 3.3.3 | 3.3.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper argument escaping in the Commandline
class's shell implementation. The GitHub pull request #40 and JIRA MSHARED-297 specifically show modifications to BourneShell
's quoteArgument
method, changing from double-quote-based escaping to POSIX-compliant single-quote escaping with proper handling of embedded single quotes. The CVE description explicitly mentions improper escaping of double-quoted strings in Commandline
class emissions, which aligns with the BourneShell
's argument quoting mechanism being the vulnerable component.