Stackurity Start free trial

CVEs / CVE-2017-12617

CVE-2017-12617: Apache Tomcat Remote Code Execution Vulnerability

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.

CISA, Known Exploited Vulnerabilities catalog

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.

The CVE record, via NVD · published 4 Oct 2017 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
Apache Software Foundation Apache Tomcat9.0.0.M1 to 9.0.0—
Apache Software Foundation Apache Tomcat8.5.0 to 8.5.22—
Apache Software Foundation Apache Tomcat8.0.0.RC1 to 8.0.46—
Apache Software Foundation Apache Tomcat7.0.0 to 7.0.81—
As stated by OSV
ProductAffectedFixed in
org.apache.tomcat:tomcat-catalina (Maven)from 9.0.0.M1, before 9.0.19.0.1
org.apache.tomcat:tomcat-catalina (Maven)from 8.5.0, before 8.5.238.5.23
org.apache.tomcat:tomcat-catalina (Maven)from 8.0.0-RC1, before 8.0.478.0.47
org.apache.tomcat:tomcat-catalina (Maven)from 7.0.0, before 7.0.827.0.82
org.apache.tomcat.embed:tomcat-embed-core (Maven)from 9.0.0.M1, before 9.0.19.0.1
org.apache.tomcat.embed:tomcat-embed-core (Maven)from 8.5.0, before 8.5.238.5.23
org.apache.tomcat.embed:tomcat-embed-core (Maven)from 8.0.0-RC1, before 8.0.478.0.47
org.apache.tomcat.embed:tomcat-embed-core (Maven)from 7.0.0, before 7.0.827.0.82

Package versions from GHSA-xjgh-84hx-56c5.

Exploitation

In CISA KEV since25 Mar 2022
Due date for US federal agencies15 Apr 2022
Used in ransomware campaignsUnknown
Required actionApply updates per vendor instructions.

Severity

CVSS 3.18.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by NVD
WeaknessCWE-434

References

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.