cve.bz

CVE-2022-29599 Improper Encoding or Escaping of Output

9.8 criticalEPSS 4.4%Fix available

Critical (9.8). EPSS 4.4% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.maven.shared:maven-shared-utils 3.3.3.

On this page
In Apache Maven maven-shared-utils prior to version 3.3.3, the Commandline class can emit double-quoted strings without proper escaping, allowing shell injection attacks.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.4% (unchanged from 4.4% a week ago; 4.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-116 Improper Encoding or Escaping of Output
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-29599 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-29599?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-29599?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-29599 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Mavenfrom maven-shared-utils before 3.3.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rhgr-952r-6p8qMavenorg.apache.maven.shared:maven-shared-utils<3.3.33.3.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9maven-shared-utils3.0.0-1+deb9u1DLA-3059-1
Debian10maven-shared-utils3.3.0-1+deb10u1DLA-3086-1
Debian11maven-shared-utils3.3.0-1+deb11u1DSA-5242-1
Debian12, 13, 14maven-shared-utils3.3.4-1DEBIAN-CVE-2022-29599
Ubuntu20.04:LTSmaven-shared-utils3.3.0-1ubuntu0.20.04.1UBUNTU-CVE-2022-29599 USN-6730-1
Ubuntu22.04:LTSmaven-shared-utils3.3.0-1ubuntu0.22.04.1UBUNTU-CVE-2022-29599 USN-6730-1
UbuntuPro:14.04:LTSmaven-shared-utils0.4-1ubuntu0.1~esm1UBUNTU-CVE-2022-29599 USN-6730-1
UbuntuPro:16.04:LTSmaven-shared-utils0.9-1ubuntu0.1~esm1UBUNTU-CVE-2022-29599 USN-6730-1
UbuntuPro:18.04:LTSmaven-shared-utils3.3.0-1ubuntu0.18.04.1~esm1UBUNTU-CVE-2022-29599 USN-6730-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moremaven-shared-utils, maven-shared-utils-javadoc0:0.4-4.el7_9RHSA-2022:1541
Red Hatenterprise_linux:8::appstreamaopalliance0:1.0-20.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamapache-commons-cli0:1.4-7.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamapache-commons-codec0:1.13-3.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamapache-commons-io1:2.6-6.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamapache-commons-lang30:3.9-4.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamatinject0:1-31.20100611svn86.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamcdi-api0:2.0.1-3.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamgeronimo-annotation0:1.0-26.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamgoogle-guice0:4.2.2-4.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamguava0:28.1-3.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
Red Hatenterprise_linux:8::appstreamhttpcomponents-client0:4.5.10-4.module+el8.6.0+13337+afcb49ecRHSA-2022:4797
160 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8aopalliance1.0-17.module_el8.6.0+2752+f1f3449eALSA-2022:4798
AlmaLinux8aopalliance1.0-20.module_el8.6.0+2786+d7c38b21ALSA-2022:4797
AlmaLinux8apache-commons-cli1.4-4.module_el8.6.0+2752+f1f3449eALSA-2022:4798
AlmaLinux8apache-commons-cli1.4-7.module_el8.6.0+2786+d7c38b21ALSA-2022:4797
AlmaLinux8apache-commons-codec1.11-3.module_el8.6.0+2752+f1f3449eALSA-2022:4798
AlmaLinux8apache-commons-codec1.13-3.module_el8.6.0+2786+d7c38b21ALSA-2022:4797
AlmaLinux8apache-commons-io1:2.6-3.module_el8.6.0+2752+f1f3449eALSA-2022:4798
AlmaLinux8apache-commons-io1:2.6-6.module_el8.6.0+2786+d7c38b21ALSA-2022:4797
AlmaLinux8apache-commons-lang33.7-3.module_el8.6.0+2752+f1f3449eALSA-2022:4798
AlmaLinux8apache-commons-lang33.9-4.module_el8.6.0+2786+d7c38b21ALSA-2022:4797
AlmaLinux8apache-commons-logging1.2-13.module_el8.6.0+2752+f1f3449eALSA-2022:4798
AlmaLinux8atinject1-28.20100611svn86.module_el8.6.0+2752+f1f3449eALSA-2022:4798
48 more for AlmaLinux in the JSON.
Rocky Linux8aopalliance0:1.0-17.module+el8.3.0+133+b8b54b58RLSA-2022:4798
Rocky Linux8aopalliance0:1.0-17.module+el8.3.0+74+855e3f5dRLSA-2022:4798
Rocky Linux8aopalliance0:1.0-17.module+el8.6.0+843+5a13dac3RLSA-2022:4798
Rocky Linux8aopalliance0:1.0-20.module+el8.3.0+134+f7791fe0RLSA-2022:4797
Rocky Linux8aopalliance0:1.0-20.module+el8.6.0+844+4401f2edRLSA-2022:4797
Rocky Linux8apache-commons-cli0:1.4-4.module+el8.3.0+133+b8b54b58RLSA-2022:4798
Rocky Linux8apache-commons-cli0:1.4-4.module+el8.3.0+74+855e3f5dRLSA-2022:4798
Rocky Linux8apache-commons-cli0:1.4-4.module+el8.6.0+843+5a13dac3RLSA-2022:4798
Rocky Linux8apache-commons-cli0:1.4-7.module+el8.3.0+134+f7791fe0RLSA-2022:4797
Rocky Linux8apache-commons-cli0:1.4-7.module+el8.6.0+844+4401f2edRLSA-2022:4797
Rocky Linux8apache-commons-codec0:1.11-3.module+el8.3.0+133+b8b54b58RLSA-2022:4798
Rocky Linux8apache-commons-codec0:1.11-3.module+el8.3.0+74+855e3f5dRLSA-2022:4798
47 more for Rocky Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Satellite ships Candlepin component, which uses the Tomcatjss module from the RHEL AppStream repository. In turn, Tomcatjss relies on Maven, which itself depends on affected Apache Maven Shared Utils. Due to the fact that Satellite does not directly use Apache Maven Shared Utils, or expose it in its code, it is considered not affected by the flaw. Satellite customers can resolve the security warning by updating to the fixed Apache Maven Shared Utils through the updated Maven module, which is available in the RHEL 8 AppStream repository. It's worth noting that this solution applies solely to RHEL 8, which supports modules exclusively, and it is not applicable to earlier versions including RHEL 7.

ProductPackageStateAdvisory
OCP-Tools-4.12-RHEL-8jenkins-2-plugins-0:4.12.1686649756-1.el8Fixed 2023-06-15RHSA-2023:3610
OCP-Tools-4.12-RHEL-8jenkins-2-plugins-0:4.12.1698294000-1.el8Fixed 2023-10-30RHSA-2023:6172
OCP-Tools-4.12-RHEL-8jenkins-2-plugins-0:4.12.1706515741-1.el8Fixed 2024-02-12RHSA-2024:0778
OCP-Tools-4.13-RHEL-8jenkins-2-plugins-0:4.13.1686680473-1.el8Fixed 2023-06-15RHSA-2023:3622
OCP-Tools-4.13-RHEL-8jenkins-2-plugins-0:4.13.1698292274-1.el8Fixed 2023-10-30RHSA-2023:6179
OCP-Tools-4.13-RHEL-8jenkins-2-plugins-0:4.13.1706516346-1.el8Fixed 2024-02-12RHSA-2024:0776
OCP-Tools-4.14-RHEL-8jenkins-2-plugins-0:4.14.1699356715-1.el8Fixed 2023-11-16RHSA-2023:7288
OCP-Tools-4.14-RHEL-8jenkins-2-plugins-0:4.14.1706516441-1.el8Fixed 2024-02-12RHSA-2024:0777
OpenShift Developer Tools and Services for OCP 4.11jenkins-2-plugins-0:4.11.1683009941-1.el8Fixed 2023-05-17RHSA-2023:3198
OpenShift Developer Tools and Services for OCP 4.11jenkins-2-plugins-0:4.11.1698299029-1.el8Fixed 2023-10-30RHSA-2023:6171
A-MQ Clients 2maven-shared-utilsNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Not affected
Red Hat AMQ Broker 7maven-shared-utilsNot affected
Red Hat A-MQ Onlinemaven-shared-utilsNot affected
Red Hat build of Apicurio Registry 2maven-shared-utilsNot affected
Red Hat build of Debezium 1maven-shared-utilsNot affected
Red Hat build of Quarkusmaven-shared-utilsNot affected
Red Hat Data Grid 8maven-shared-utilsNot affected
Red Hat Decision Manager 7maven-shared-utilsNot affected
Red Hat Enterprise Linux 9maven-shared-utilsNot affected
30 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-29599.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON