cbcvebase.
CVE-2019-0232
published 2019-04-15

CVE-2019-0232: 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…

PriorityP187high8.1CVSS 3.0
AVNACHPRNUINSUCHIHAH
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
99.65%
99.9th percentile
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/).

Affected

9 ranges
VendorProductVersion rangeFixed in
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat7.0.0 – 7.0.93
apachetomcat8.5.0 – 8.5.39
apachetomcat9.0.1 – 9.0.17
debiantomcat9

Detection & IOCsextracted from sources · hover to see the quote

other1009697 - Apache Tomcat Remote Code Execution Vulnerability (CVE-2019-0232)
other315387 - HTTP: Apache Tomcat Remote Code Execution on Windows
  • Exploit requires CGI Servlet to be enabled AND enableCmdLineArguments set to true on Windows. Detect HTTP requests to /cgi-bin/* paths on Tomcat Windows instances that contain cmd metacharacters (&, |, ^, %) in query string parameters.
  • When a .bat or .cmd CGI script is invoked, Tomcat/JRE promotes execution to cmd.exe /c. Monitor for cmd.exe processes spawned as children of Tomcat's JVM (java.exe/javaw.exe) on Windows as a sign of exploitation.
  • ·Vulnerability is only exploitable on Windows when the CGI Servlet is enabled (disabled by default) AND enableCmdLineArguments is set to true (disabled by default in Tomcat 9.0.x).
  • ·The web.xml file must be modified to enable the CGI Servlet and set enableCmdLineArguments=true for the attack surface to exist. Audit web.xml for these settings.

CVSS provenance

nvdv3.08.1HIGHCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.09.3CRITICALAV:N/AC:M/Au:N/C:C/I:C/A:C
vulncheck8.1HIGH
vendor_apache8.1HIGH
vendor_debian8.1LOW
vendor_oracle8.1HIGH
vendor_redhat8.1HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.