Remote code executionin Apache Tomcat.
Weaponized: a Metasploit exploit is public.
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/).
- Upgrade org.apache.tomcat.embed:tomcat-embed-core (Maven) to 7.0.94, 8.5.40, 9.0.17 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 14 Nov 2018CVE ID reserved by apache.
- 10 Apr 2019Metasploit module: Apache Tomcat CGIServlet enableCmdLineArguments Vulnerability.
- 15 Apr 2019Published in the CVE List.
- 15 Apr 2019First public proof of concept on GitHub.
- 2 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Tomcat vulnerabilities
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- www.securityfocus.com vdb-entry, x_refsource_BID
- lists.apache.org mailing-list, x_refsource_MLIST
- seclists.org mailing-list, x_refsource_FULLDISC
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- codewhitesec.blogspot.com x_refsource_MISC
- web.archive.org x_refsource_MISC
- www.synology.com x_refsource_CONFIRM
- security.netapp.com x_refsource_CONFIRM
- www.broadcom.com x_refsource_CONFIRM
- blog.trendmicro.com x_refsource_MISC
Patchminder. CVE-2019-0232: Remote code execution in Apache Tomcat. https://patchminder.com/cve/cve-2019-0232/ (accessed 5 December 2026).