{"answers":{"affected":"6 open source packages ship an affected version, including org.apache.tomcat.embed:tomcat-embed-core. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-0232 exists.","fix":"Upgrade org.apache.tomcat.embed:tomcat-embed-core to a fixed version for your release line: 7.0.94, 8.5.40 or 9.0.17.","what":"CVE-2019-0232 is a high-severity command injection vulnerability in Apache Tomcat, published on 15 Apr 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-0232 and fix it if it is affected.\n\nWhat it is: CVE-2019-0232 is a high-severity command injection vulnerability in Apache Tomcat, published on 15 Apr 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-0232 exists.\n\nAffected packages and fixed versions:\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 7.0.0; fixed in 7.0.94\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 7.0.0; fixed in 7.0.94\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 8.0.0; fixed in 8.5.40\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 8.0.0; fixed in 8.5.40\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 9.0.0.M1; fixed in 9.0.17\n- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 9.0.0.M1; fixed in 9.0.17\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-2019-0232/ (Markdown: https://insights.sbomify.com/CVE-2019-0232/index.md)","id":"CVE-2019-0232","markdown":"https://insights.sbomify.com/CVE-2019-0232/index.md","name":"CVE-2019-0232","record":{"aliases":["GHSA-8vmx-qmch-mpqg"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Tomcat","requires_auth":"none","summary":"Remote code execution in Apache Tomcat CGI Servlet on Windows when command line arguments are enabled, requiring specific configuration.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"tomcat","vendor":"apache"}],"cvss":{"score":8.1,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"When running on Windows with enableCmdLineArguments enabled, the CGI Servlet in Apache Tomcat 9.0.0.M1 to 9.0.17, 8.5.0 to 8.5.39 and 7.0.0 to 7.0.93 is vulnerable to Remote Code Execution due to a bug in the way the JRE passes command line arguments to Windows. The CGI Servlet is disabled by default. The CGI option enableCmdLineArguments is disable by default in Tomcat 9.0.x (and will be disabled by default in all versions in response to this vulnerability). For a detailed explanation of the JRE behaviour, see Markus Wulftange's blog (https://codewhitesec.blogspot.com/2016/02/java-and-command-line-injections-in-windows.html) and this archived MSDN blog (https://web.archive.org/web/20161228144344/https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/).","ecosystems":["Maven"],"exploits":{"exploitdb":1,"first_seen":"2019-04-10","github_poc":15,"max_poc_stars":190,"metasploit":1,"nuclei":1,"refs":[{"date":"2019-04-15T07:54:25Z","kind":"github_poc","ref":"https://github.com/pyn3rd/CVE-2019-0232","stars":190,"title":"Apache Tomcat Remote Code Execution on Windows"},{"date":"2019-04-16T14:32:03Z","kind":"github_poc","ref":"https://github.com/jas502n/CVE-2019-0232","stars":82,"title":"Apache Tomcat Remote Code Execution on Windows - CGI-BIN"},{"date":"2021-03-25T20:09:54Z","kind":"github_poc","ref":"https://github.com/jaiguptanick/CVE-2019-0232","stars":33,"title":"Vulnerability analysis and PoC for the Apache Tomcat - CGIServlet enableCmdLineArguments Remote Code Execution (RCE)"},{"date":"2019-11-21T14:25:39Z","kind":"github_poc","ref":"https://github.com/setrus/CVE-2019-0232","stars":20,"title":"CVE-2019-0232-Remote Code Execution on Apache Tomcat 7.0.42"},{"date":"2019-05-23T05:44:29Z","kind":"github_poc","ref":"https://github.com/cyy95/CVE-2019-0232-EXP","stars":3,"title":null},{"date":"2024-12-29T04:01:23Z","kind":"github_poc","ref":"https://github.com/Dharan10/CVE-2019-0232","stars":2,"title":"Hi this is a revised and enhanced code for CVE-2019-0232 "},{"date":"2021-02-20T18:38:48Z","kind":"github_poc","ref":"https://github.com/Nicoslo/Windows-exploitation-Apache-Tomcat-8.5.19-CVE-2019-0232-","stars":1,"title":null},{"date":"2021-02-21T16:56:25Z","kind":"github_poc","ref":"https://github.com/Nicoslo/Windows-Exploitation-Web-Server-Tomcat-8.5.39-CVE-2019-0232","stars":1,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Tomcat OS Command Injection vulnerability","id":"CVE-2019-0232","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"apache:tomcat","products":["apache:tomcat"],"type":"command_injection","year":"2019"},"n_packages":6,"n_references":32,"next":{"headline":"Improper Preservation of Permissions in Apache Struts","id":"CVE-2019-0233"},"packages":[{"ecosystem":"Maven","fixed":["7.0.94"],"introduced":["7.0.0"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":null,"source":"GHSA-8vmx-qmch-mpqg"},{"ecosystem":"Maven","fixed":["7.0.94"],"introduced":["7.0.0"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"GHSA-8vmx-qmch-mpqg"},{"ecosystem":"Maven","fixed":["8.5.40"],"introduced":["8.0.0"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":null,"source":"GHSA-8vmx-qmch-mpqg"},{"ecosystem":"Maven","fixed":["8.5.40"],"introduced":["8.0.0"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"GHSA-8vmx-qmch-mpqg"},{"ecosystem":"Maven","fixed":["9.0.17"],"introduced":["9.0.0.M1"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":null,"source":"GHSA-8vmx-qmch-mpqg"},{"ecosystem":"Maven","fixed":["9.0.17"],"introduced":["9.0.0.M1"],"last_affected":[],"package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"GHSA-8vmx-qmch-mpqg"}],"prev":{"headline":"Apache MINA SSLFilter security Issue","id":"CVE-2019-0231"},"products":["Tomcat"],"published":"2019-04-15","related":[{"cvss_score":10,"headline":"Apache Tomcat Path Equivalence","id":"CVE-2025-24813","kev_date_added":"2025-04-01","published":"2025-03-10"},{"cvss_score":9.8,"headline":"Apache Tomcat Remote Code Execution","id":"CVE-2016-8735","kev_date_added":"2023-05-12","published":"2017-04-06"},{"cvss_score":8.1,"headline":"Apache Tomcat Remote Code Execution","id":"CVE-2017-12617","kev_date_added":"2022-03-25","published":"2017-10-03"},{"cvss_score":8.1,"headline":"Apache Tomcat on Windows Remote Code Execution","id":"CVE-2017-12615","kev_date_added":"2022-03-25","published":"2017-09-19"},{"cvss_score":7.5,"headline":"Apache Tomcat Missing Encryption of Sensitive Data","id":"CVE-2026-34486","kev_date_added":"2026-08-04","published":"2026-04-09"},{"cvss_score":9.8,"headline":"Apache Tomcat: HTTP/2 no-authority bypass of strict SNI validation - CVE-2026-32990 fix incomplete","id":"CVE-2026-65637","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":9.8,"headline":"Apache Tomcat: Limited replay attack possible with DIGEST authentication","id":"CVE-2026-65905","kev_date_added":null,"published":"2026-08-25"}],"sources":[{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Apache"]},"summary":"Remote code execution in Apache Tomcat CGI Servlet on Windows when command line arguments are enabled, requiring specific configuration.","url":"https://insights.sbomify.com/CVE-2019-0232/"}