When running Apache Tomcat on Windows with HTTP PUTs enabled, it is possible to upload a JSP file to the server via a specially crafted request. This JSP could then be requested and any code it contained would be executed by the server.
In short
CVE-2017-12615 (Apache Tomcat on Windows Remote Code Execution) has a CVSS 3.1 base score of 8.1, rated high. CISA added it to the Known Exploited Vulnerabilities catalog on 25 Mar 2022, and it has been used in ransomware campaigns. The NVD records no fixed version, so follow the vendor advisory.
Description
When running Apache Tomcat 7.0.0 to 7.0.79 on Windows with HTTP PUTs enabled (e.g. via setting the readonly initialisation parameter of the Default to false) it was possible to upload a JSP file to the server via a specially crafted request. This JSP could then be requested and any code it contained would be executed by the server.
CVSS 3.1 breakdown
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HAffected products
- Apache Tomcat≥ 7.0.0 ≤ 7.0.79
- Netapp 7-mode Transition Toolall versions
- Netapp Oncommand Balanceall versions
- Netapp Oncommand Shiftall versions
- Redhat Enterprise Linux Server Update Services For Sap Solutions7.4 · 7.6 · 7.7
- Redhat Jboss Enterprise Web Server2.0.0 · 3.0.0
- Redhat Jboss Enterprise Web Server Text-only Advisoriesall versions
- Redhat Enterprise Linux Desktop6.0 · 7.0
- Redhat Enterprise Linux Eus7.4 · 7.5 · 7.6 · 7.7
- Redhat Enterprise Linux Eus Compute Node7.4 · 7.5 · 7.6 · 7.7
- Redhat Enterprise Linux For Ibm Z Systems7.0_s390x
- Redhat Enterprise Linux For Ibm Z Systems Eus7.4_s390x · 7.5_s390x · 7.6_s390x · 7.7_s390x
- Redhat Enterprise Linux For Power Big Endian7.0_ppc64
- Redhat Enterprise Linux For Power Big Endian Eus7.4_ppc64 · 7.5_ppc64 · 7.6_ppc64 · 7.7_ppc64
- Redhat Enterprise Linux For Power Little Endian7.0_ppc64le
- Redhat Enterprise Linux For Power Little Endian Eus7.4_ppc64le · 7.5_ppc64le · 7.6_ppc64le · 7.7_ppc64le
- Redhat Enterprise Linux For Scientific Computing7.0
- Redhat Enterprise Linux Server6.0 · 7.0
- Redhat Enterprise Linux Server Aus7.4 · 7.6 · 7.7
- Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions7.4_ppc64le · 7.6_ppc64le · 7.7_ppc64le · 9.2_ppc64le
- Redhat Enterprise Linux Server Tus7.4 · 7.6 · 7.7
- Redhat Enterprise Linux Workstation6.0 · 7.0
Remediation
No fixed version is recorded in the NVD data. Check the vendor advisory for the latest guidance.
Patch & vendor advisories- https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E
References
- http://breaktoprotect.blogspot.com/2017/09/the-case-of-cve-2017-12615-tomcat-7-put.html
- https://access.redhat.com/errata/RHSA-2017:3080
- https://access.redhat.com/errata/RHSA-2017:3081
- https://access.redhat.com/errata/RHSA-2017:3113
- https://access.redhat.com/errata/RHSA-2017:3114
- https://access.redhat.com/errata/RHSA-2018:0465
- https://access.redhat.com/errata/RHSA-2018:0466
- https://github.com/breaktoprotect/CVE-2017-12615
- https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7%40%3Cdev.tomcat.apache.org%3E
and 10 more references
Related CVEs
Exploited and critical vulnerabilities in the same product or from the same vendor.
Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.
