CVEs / CVE-2017-12617
CVE-2017-12617: Apache Tomcat Remote Code Execution Vulnerability
- Known exploited in the CISA KEV catalog since 25 Mar 2022
- high 8.1 CVSS 3.1 (NVD)
- EPSS 99.9% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2017-12617
Summary
When running Apache Tomcat, 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.
Description
When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTTP PUTs enabled (e.g. via setting the readonly initialisation parameter of the Default servlet 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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Tomcat | 9.0.0.M1 to 9.0.0 | — |
| Apache Software Foundation Apache Tomcat | 8.5.0 to 8.5.22 | — |
| Apache Software Foundation Apache Tomcat | 8.0.0.RC1 to 8.0.46 | — |
| Apache Software Foundation Apache Tomcat | 7.0.0 to 7.0.81 | — |
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.tomcat:tomcat-catalina (Maven) | from 9.0.0.M1, before 9.0.1 | 9.0.1 |
| org.apache.tomcat:tomcat-catalina (Maven) | from 8.5.0, before 8.5.23 | 8.5.23 |
| org.apache.tomcat:tomcat-catalina (Maven) | from 8.0.0-RC1, before 8.0.47 | 8.0.47 |
| org.apache.tomcat:tomcat-catalina (Maven) | from 7.0.0, before 7.0.82 | 7.0.82 |
| org.apache.tomcat.embed:tomcat-embed-core (Maven) | from 9.0.0.M1, before 9.0.1 | 9.0.1 |
| org.apache.tomcat.embed:tomcat-embed-core (Maven) | from 8.5.0, before 8.5.23 | 8.5.23 |
| org.apache.tomcat.embed:tomcat-embed-core (Maven) | from 8.0.0-RC1, before 8.0.47 | 8.0.47 |
| org.apache.tomcat.embed:tomcat-embed-core (Maven) | from 7.0.0, before 7.0.82 | 7.0.82 |
Package versions from GHSA-xjgh-84hx-56c5.
Exploitation
| In CISA KEV since | 25 Mar 2022 |
|---|---|
| Due date for US federal agencies | 15 Apr 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 8.1 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-434 |
References
- CVE-2017-12617 on NVD
- CVE-2017-12617 in the CISA KEV catalog
- CVE-2017-12617 on OSV
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html Patch, Third Party Advisory
- http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html Patch, Third Party Advisory
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html Patch, Third Party Advisory
- http://www.securityfocus.com/bid/100954 Broken Link, Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1039552 Broken Link, Third Party Advisory, VDB Entry
- https://access.redhat.com/errata/RHSA-2017:3080 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:3081 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:3113 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:3114 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0268 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0269 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0270 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0271 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0275 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0465 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0466 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2939 Third Party Advisory
- https://lists.apache.org/thread.html/1dd0a59c1295cc08ce4c9e7edae5ad2268acc9ba55adcefa0532e5ba%40%3Cdev.tomcat.apache.org%3E Mailing List, Patch
- https://lists.apache.org/thread.html/343558d982879bf88ec20dbf707f8c11255f8e219e81d45c4f8d0551%40%3Cdev.tomcat.apache.org%3E Mailing List, Patch
- https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org%3E Mailing List, Patch
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.