Remote code execution in Apache Tomcat - CVE-2017-12615

 

Remote code execution in Apache Tomcat - CVE-2017-12615

Published: September 21, 2017 / Updated: February 22, 2023


Vulnerability identifier: #VU8541
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-12615
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

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

The weakness exists in Apache Tomcat when running on Windows with HTTP PUTs enabled (e.g. via setting the readonly initialisation parameter of the Default to false) due to input validation flaw. A remote attacker can send a specially crafted HTTP PUT request to upload an arbitrary JSP file to the target system and request the file to execute arbitrary code with privileges of the current user.

Successful exploitation of the vulnerability may result in system compromise.

Affected software

Apache Tomcat
JBoss Enterprise Web Server
Red Hat Enterprise Linux for x86_64
Fedora
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux EUS Compute Node
SUSE Linux
tomcat

How to mitigate CVE-2017-12615

Update to version 7.0.81.

tomcat - addressed in versions 7.0.82-1.el6, 8.0.47-1.fc25, 8.0.47-1.fc26, 8.0.47-1.fc27

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins