{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.maven.shared:maven-shared-utils. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-29599 in the wild and no public exploit code.","fix":"Upgrade org.apache.maven.shared:maven-shared-utils to 3.3.3 or later.","what":"CVE-2022-29599 is a critical command injection vulnerability in Debian Debian Linux, published on 23 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-29599 and fix it if it is affected.\n\nWhat it is: CVE-2022-29599 is a critical command injection vulnerability in Debian Debian Linux, published on 23 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-29599 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.maven.shared:maven-shared-utils (Maven): affected all versions; fixed in 3.3.3\n- org.apache.maven.shared:maven-shared-utils (Maven): affected all versions; fixed in 3.3.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-29599/ (Markdown: https://insights.sbomify.com/CVE-2022-29599/index.md)","id":"CVE-2022-29599","markdown":"https://insights.sbomify.com/CVE-2022-29599/index.md","name":"CVE-2022-29599","record":{"aliases":["ALSA-2022:4797","ALSA-2022:4798","CLSA-2025-1766362094","DEBIAN-CVE-2022-29599","DLA-3059-1","DLA-3086-1","DSA-5242-1","GHSA-rhgr-952r-6p8q","OESA-2022-1684","RHSA-2022:1541","RHSA-2022:1662","RHSA-2022:4699","RHSA-2022:4797","RHSA-2022:4798","RHSA-2022:9098","RHSA-2023:0573","RLSA-2022:4797","RLSA-2022:4798","ROOT-APP-MAVEN-CVE-2022-29599","UBUNTU-CVE-2022-29599","USN-6730-1","openSUSE-SU-2024:12027-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Maven","requires_auth":"none","summary":"Attackers can execute arbitrary commands via shell injection in Apache Maven's Commandline class due to improper escaping of double-quoted strings.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"maven_shared_utils","vendor":"apache"},{"product":"debian_linux","vendor":"debian"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"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.","ecosystems":["AlmaLinux:8","Maven","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:openshift:4.10::el8","Red Hat:openshift:4.9::el8","Red Hat:rhel_e4s:8.1::appstream","Red Hat:rhel_eus:8.2::appstream","Red Hat:rhel_eus:8.4::appstream","Red Hat:rhel_software_collections:3::el7","Rocky Linux:8"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Commandline class shell injection vulnerabilities","id":"CVE-2022-29599","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"command_injection","year":"2022"},"n_packages":521,"n_references":5,"next":{"headline":"SQL injection in n/a","id":"CVE-2022-29600"},"packages":[{"ecosystem":"Maven","fixed":["3.3.3"],"introduced":["0"],"last_affected":[],"package":"org.apache.maven.shared:maven-shared-utils","purl":null,"source":"GHSA-rhgr-952r-6p8q"},{"ecosystem":"Maven","fixed":["3.3.3"],"introduced":["0"],"last_affected":[],"package":"org.apache.maven.shared:maven-shared-utils","purl":"pkg:maven/org.apache.maven.shared/maven-shared-utils","source":"GHSA-rhgr-952r-6p8q"},{"ecosystem":"AlmaLinux:8","fixed":["1.0-17.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"aopalliance","purl":"pkg:rpm/almalinux/aopalliance","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.0-20.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"aopalliance","purl":"pkg:rpm/almalinux/aopalliance","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1.4-4.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"apache-commons-cli","purl":"pkg:rpm/almalinux/apache-commons-cli","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.4-7.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"apache-commons-cli","purl":"pkg:rpm/almalinux/apache-commons-cli","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1.11-3.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"apache-commons-codec","purl":"pkg:rpm/almalinux/apache-commons-codec","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.13-3.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"apache-commons-codec","purl":"pkg:rpm/almalinux/apache-commons-codec","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.6-3.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"apache-commons-io","purl":"pkg:rpm/almalinux/apache-commons-io","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.6-6.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"apache-commons-io","purl":"pkg:rpm/almalinux/apache-commons-io","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["3.7-3.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"apache-commons-lang3","purl":"pkg:rpm/almalinux/apache-commons-lang3","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["3.9-4.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"apache-commons-lang3","purl":"pkg:rpm/almalinux/apache-commons-lang3","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1.2-13.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"apache-commons-logging","purl":"pkg:rpm/almalinux/apache-commons-logging","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1-28.20100611svn86.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"atinject","purl":"pkg:rpm/almalinux/atinject","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1-31.20100611svn86.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"atinject","purl":"pkg:rpm/almalinux/atinject","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1.2-8.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"cdi-api","purl":"pkg:rpm/almalinux/cdi-api","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["2.0.1-3.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"cdi-api","purl":"pkg:rpm/almalinux/cdi-api","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1.0-23.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"geronimo-annotation","purl":"pkg:rpm/almalinux/geronimo-annotation","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.0-26.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"geronimo-annotation","purl":"pkg:rpm/almalinux/geronimo-annotation","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-0.7.b08.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"glassfish-el-api","purl":"pkg:rpm/almalinux/glassfish-el-api","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["4.1-11.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"google-guice","purl":"pkg:rpm/almalinux/google-guice","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.2-4.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"google-guice","purl":"pkg:rpm/almalinux/google-guice","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["28.1-3.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"guava","purl":"pkg:rpm/almalinux/guava","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["20.0-8.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"guava20","purl":"pkg:rpm/almalinux/guava20","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.16-2.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"hawtjni-runtime","purl":"pkg:rpm/almalinux/hawtjni-runtime","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["4.5.10-4.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"httpcomponents-client","purl":"pkg:rpm/almalinux/httpcomponents-client","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["4.5.5-5.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"httpcomponents-client","purl":"pkg:rpm/almalinux/httpcomponents-client","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["4.4.10-3.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"httpcomponents-core","purl":"pkg:rpm/almalinux/httpcomponents-core","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["4.4.12-3.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"httpcomponents-core","purl":"pkg:rpm/almalinux/httpcomponents-core","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1.17.1-1.module_el8.0.0+6044+f3cbc35d"],"introduced":["0"],"last_affected":[],"package":"jansi","purl":"pkg:rpm/almalinux/jansi","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.17.1-1.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"jansi","purl":"pkg:rpm/almalinux/jansi","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.18-4.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"jansi","purl":"pkg:rpm/almalinux/jansi","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1.7-7.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"jansi-native","purl":"pkg:rpm/almalinux/jansi-native","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.0-8.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"jboss-interceptors-1.2-api","purl":"pkg:rpm/almalinux/jboss-interceptors-1.2-api","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.7.25-4.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"jcl-over-slf4j","purl":"pkg:rpm/almalinux/jcl-over-slf4j","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.7.28-3.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"jcl-over-slf4j","purl":"pkg:rpm/almalinux/jcl-over-slf4j","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1.11.3-3.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"jsoup","purl":"pkg:rpm/almalinux/jsoup","source":"ALSA-2022:4798"},{"ecosystem":"AlmaLinux:8","fixed":["1.12.1-3.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"jsoup","purl":"pkg:rpm/almalinux/jsoup","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["0-0.25.20130910svn.module_el8.6.0+2786+d7c38b21"],"introduced":["0"],"last_affected":[],"package":"jsr-305","purl":"pkg:rpm/almalinux/jsr-305","source":"ALSA-2022:4797"},{"ecosystem":"AlmaLinux:8","fixed":["1:3.5.4-5.module_el8.6.0+2752+f1f3449e"],"introduced":["0"],"last_affected":[],"package":"maven","purl":"pkg:rpm/almalinux/maven","source":"ALSA-2022:4798"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2022-29598"},"products":["Apache Maven"],"published":"2022-05-23","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary commands via shell injection in Apache Maven's Commandline class due to improper escaping of double-quoted strings.","url":"https://insights.sbomify.com/CVE-2022-29599/"}