patchminder
Weaponized · Metasploit CVE-2019-0232

Remote code executionin Apache Tomcat.

Published 15 Apr 2019 · Updated 2 Nov 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 99.9% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 7.0.94, 8.5.40, 9.0.17
In plain words

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/).

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Tomcat
9.0.0.M1 to 9.0.17
Not confirmed
CVE record
Tomcat
8.5.0 to 8.5.39
Not confirmed
CVE record
Tomcat
7.0.0 to 7.0.93
Not confirmed
CVE record
org.apache.tomcat.embed:tomcat-embed-core (Maven)
9.0.0.M1 to before 9.0.17
9.0.17
GitHub advisory
org.apache.tomcat.embed:tomcat-embed-core (Maven)
8.0.0 to before 8.5.40
8.5.40
GitHub advisory
org.apache.tomcat.embed:tomcat-embed-core (Maven)
7.0.0 to before 7.0.94
7.0.94
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 14 Nov 2018
    CVE ID reserved by apache.
  2. 10 Apr 2019
    Metasploit module: Apache Tomcat CGIServlet enableCmdLineArguments Vulnerability.
  3. 15 Apr 2019
    Published in the CVE List.
  4. 15 Apr 2019
    First public proof of concept on GitHub.
  5. 2 Nov 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation none.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
1 entry
GitHub proof of concepts
16 repositories
Exploit-DBEDB-ID 47073remote exploit for windows, published 3 Jul 2019, verified by Exploit-DB
GitHubno warning signs foundpyn3rd/CVE-2019-0232188 stars · created 15 Apr 2019Apache Tomcat Remote Code Execution on Windows
GitHubno warning signs foundjas502n/CVE-2019-023280 stars · created 16 Apr 2019Apache Tomcat Remote Code Execution on Windows · CGI-BIN
GitHubno warning signs foundjaiguptanick/CVE-2019-023232 stars · created 25 Mar 2021Vulnerability analysis and PoC for the Apache Tomcat · CGIServlet enableCmdLineArguments Remote Code Execution (RCE)
GitHubno warning signs foundsetrus/CVE-2019-023221 stars · created 21 Nov 2019CVE-2019-0232-Remote Code Execution on Apache Tomcat 7.0.42
GitHubno warning signs foundcyy95/CVE-2019-0232-EXP3 stars · created 23 May 2019
GitHubno warning signs foundDharan10/CVE-2019-02322 stars · created 29 Dec 2024Hi this is a revised and enhanced code for CVE-2019-0232
GitHubno warning signs foundNicoslo/Windows-exploitation-Apache-Tomcat-8.5.19-CVE-2019-0232-1 stars · created 20 Feb 2021
GitHubno warning signs foundNicoslo/Windows-Exploitation-Web-Server-Tomcat-8.5.39-CVE-2019-02321 stars · created 21 Feb 2021
GitHubno warning signs foundJorge2Rubio/CVE-2019-02321 stars · created 2 Dec 2025
GitHubno warning signs foundyuzuki-ayanami/CVE-2019-02321 stars · created 12 Jul 2026CVE-2019-0232 · Apache Tomcat CGIServlet enableCmdLineArguments RCE · PoC Exploit

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.

Related

Other Tomcat vulnerabilities

References
Cite this page

Patchminder. CVE-2019-0232: Remote code execution in Apache Tomcat. https://patchminder.com/cve/cve-2019-0232/ (accessed 5 December 2026).