CVE-2019-0232
Vulnerability in Apache Tomcat
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/).
Exploitation
EPSS 99.9%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.9% of all scored CVEs. Scores of 26 Nov 2026.
The assessment of CISA (SSVC, 2 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Tomcat |
affected 9.0.0.M1 to 9.0.17 affected 8.5.0 to 8.5.39 affected 7.0.0 to 7.0.93
|
Is my server affected?
Find the installed version of tomcat and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i tomcat
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-0232 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-0232RHEL, Rocky, Alma, Fedora
rpm -q tomcat
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-0232Alpine
apk list --installed | grep -i tomcatWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2019-0232
trivy image --scanners vuln IMAGE | grep CVE-2019-0232
PatchBrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.
References
Advisories
- RHSA-2019:1712 access.redhat.com · vendor advisory
- https://www.synology.com/security/advisory/Synology_SA_19_17 synology.com
- https://security.netapp.com/advisory/ntap-20190419-0001/ security.netapp.com
- https://www.broadcom.com/support/fibre-channel-networking/security-advisories/brocade-security-advisory-2019-784 broadcom.com
Other references
- [tomcat-users] 20190410 [SECURITY] CVE-2019-0232 Apache Tomcat Remote Code Execution on Windows lists.apache.org · mailing list
- [tomcat-dev] 20190415 svn commit: r1857582 [18/22] - in /tomcat/site/trunk: docs/ xdocs/stylesheets/ lists.apache.org · mailing list
- [ofbiz-commits] 20190415 svn commit: r1857587 - in /ofbiz: ofbiz-framework/branches/release18.12/build.gradle… lists.apache.org · mailing list
- [tomcat-dev] 20190415 svn commit: r1857582 [17/22] - in /tomcat/site/trunk: docs/ xdocs/stylesheets/ lists.apache.org · mailing list
- [ofbiz-commits] 20190415 svn commit: r1857586 - in /ofbiz: ofbiz-framework/trunk/build.gradle… lists.apache.org · mailing list
- [tomcat-dev] 20190415 svn commit: r1857582 [19/22] - in /tomcat/site/trunk: docs/ xdocs/stylesheets/ lists.apache.org · mailing list
- [ofbiz-commits] 20190415 svn commit: r1857588 - in /ofbiz: ofbiz-framework/branches/release17.12/build.gradle… lists.apache.org · mailing list
- [ofbiz-notifications] 20190415 [jira] [Commented] (OFBIZ-10920) Update Tomcat to 9.0.18 due to CVE-2019-0232 lists.apache.org · mailing list
- [ofbiz-notifications] 20190415 [jira] [Closed] (OFBIZ-10920) Update Tomcat to 9.0.18 due to CVE-2019-0232 lists.apache.org · mailing list
- 107906 securityfocus.com · vdb entry
- [tomcat-dev] 20190421 svn commit: r1857901 - in /tomcat/site/trunk: docs/security-7.html docs/security-8.html… lists.apache.org · mailing list
- 20190504 RCE in CGI Servlet - Apache Tomcat on Windows - CVE-2019-0232 seclists.org · mailing list
16 more
- [announce] 20200131 Apache Software Foundation Security Report: 2019 lists.apache.org · mailing list
- [tomcat-dev] 20200203 svn commit: r1873527 [24/30] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- [tomcat-dev] 20200203 svn commit: r1873527 [25/30] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- [tomcat-dev] 20200213 svn commit: r1873980 [27/34] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- [tomcat-dev] 20200213 svn commit: r1873980 [28/34] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- [tomcat-dev] 20200213 svn commit: r1873980 [29/34] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpuapr2020.html oracle.com
- https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html oracle.com
- https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html oracle.com
- https://www.oracle.com/security-alerts/cpujan2020.html oracle.com
- https://www.oracle.com/security-alerts/cpuApr2021.html oracle.com
- https://codewhitesec.blogspot.com/2016/02/java-and-command-line-injections-in-windows.html codewhitesec.blogspot.com
- https://web.archive.org/web/20161228144344/https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/ web.archive.org
- https://blog.trendmicro.com/trendlabs-security-intelligence/uncovering-cve-2019-0232-a-remote-code-execution-vulnerability-in-apache-tomcat/ blog.trendmicro.com
- https://wwws.nightwatchcybersecurity.com/2019/04/30/remote-code-execution-rce-in-cgi-servlet-apache-tomcat-on-windows-cve-2019-0232/ wwws.nightwatchcybersecurity.com
- http://packetstormsecurity.com/files/153506/Apache-Tomcat-CGIServlet-enableCmdLineArguments-Remote-Code-Execution.html packetstormsecurity.com
Source: the record CVE-2019-0232 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.