HIGH 8.1

CVE-2019-0232

Apache Tomcat OS Command Injection vulnerability

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

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.tomcat.embed » tomcat-embed-core
>= 7.0.0, < 7.0.94>= 8.0.0, < 8.5.40>= 9.0.0.M1, < 9.0.17
7.0.94, 8.5.40, 9.0.17

Blast radius

1affected artifacts
214affected versions
7,785dependent artifacts (est.)
203,059dependent versions

56% of the dependent artifacts (4,388) still pull an affected version in their latest release.

DepthDependent versions
Direct
9,129
2 hops
9,047
3 hops
88,078
4 hops
49,923
5 hops
38,399
6 hops
8,483

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References