Skip to main content
← All vulnerabilities
CVE-2019-0232GHSA-8VMX-QMCH-MPQG

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 9.0.17, 8.5.40, 7.0.94
1 on Exploit-DB, 1 Metasploit module, 15 proofs of concept on GitHub, 1 Nuclei template

Summary

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

Timeline

  1. CVE published
  2. Public exploit on Exploit-DB

    EDB-47073

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Apache Tomcat

    9.0.0.M1 to 9.0.17, 8.5.0 to 8.5.39, 7.0.0 to 7.0.93

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 9.0.0.M1 · fixed in 9.0.17

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 8.0.0 · fixed in 8.5.40

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 7.0.0 · fixed in 7.0.94

References 43

lists.apache.org

securityfocus.com

seclists.org

access.redhat.com

oracle.com

codewhitesec.blogspot.com

Exploit-DB

GitHub · rapid7/metasploit-framework

GitHub · projectdiscovery/nuclei-templates

GitHub · Dharan10/CVE-2019-0232

GitHub · Jorge2Rubio/CVE-2019-0232

GitHub · Nicoslo/Windows-Exploitation-Web-Server-Tomcat-8.5.39-CVE-2019-0232

GitHub · Nicoslo/Windows-exploitation-Apache-Tomcat-8.5.19-CVE-2019-0232-

GitHub · blackjuker2/CVE-2019-0232

GitHub · cyy95/CVE-2019-0232-EXP

GitHub · jaiguptanick/CVE-2019-0232

GitHub · jas502n/CVE-2019-0232

GitHub · luongchivi/Preproduce-CVE-2019-0232

GitHub · pyn3rd/CVE-2019-0232

GitHub · r4vl1t0/CVE-2019-0232

GitHub · setrus/CVE-2019-0232

GitHub · x3m1Sec/CVE-2019-0232_tomcat_cgi_exploit

GitHub · xsxtw/CVE-2019-0232

GitHub · yuzuki-ayanami/CVE-2019-0232