OS Command Injection in Apache Tomcat - CVE-2019-0232

 

OS Command Injection in Apache Tomcat - CVE-2019-0232

Published: April 11, 2019 / Updated: March 7, 2025


Vulnerability identifier: #VU18236
CSH Severity: High
CVSS v4: 7.7 [CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-0232
CWE-ID: CWE-78
Exploitation vector: Adjecent network
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary commands on the target system.

The vulnerability exists due to an input validation error within the CGI Servlet when passing arguments from JRE to the Windows environment. A remote attacker can send a specially crafted request to the CGI Servlet, inject and execute arbitrary OS commands on the system with Apache Tomcat privileges.

Successful exploitation of the vulnerability requires that Apache Tomcat is installed on Windows operating system with enabled option “enableCmdLineArguments” (CGI Servlet and “enableCmdLineArguments” option are disabled by default).


Affected software

Apache Tomcat
Amazon Linux AMI
Oracle Retail Order Broker
Oracle Agile Engineering Data Management
Oracle Transportation Management
Oracle Database Server
MICROS Relate CRM Software
Instantis EnterpriseTrack

How to mitigate CVE-2019-0232

Install update from vendor's website.

Apache Tomcat - addressed in versions 7.0.94, 8.5.40, 9.0.19

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins