cve.bz

CVE-2017-12615 Apache Tomcat on Windows Remote Code Execution Vulnerability

8.1 highKEVExploitEPSS 99.7%Fix available

High (8.1) in Apache Tomcat. In CISA KEV since 2022-03-25, with known ransomware use. EPSS 99.7% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat.embed:tomcat-embed-core 7.0.79.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
99.7% (unchanged from 99.7% a week ago; 99.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2022-03-25, due 2022-04-15, known ransomware use
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2022-03-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-434 Unrestricted Upload of File with Dangerous Type
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-12615 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-12615?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-12615?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-12615 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:tomcatfrom 7.0.0 through 7.0.79
redhat:enterprise_linux_server_update_services_for_sap_solutions7.4
redhat:enterprise_linux_server_update_services_for_sap_solutions7.6
redhat:enterprise_linux_server_update_services_for_sap_solutions7.7
redhat:jboss_enterprise_web_server2.0.0
redhat:jboss_enterprise_web_server3.0.0
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_eus7.4
redhat:enterprise_linux_eus7.5
redhat:enterprise_linux_eus7.6
redhat:enterprise_linux_eus7.7
redhat:enterprise_linux_eus_compute_node7.4
redhat:enterprise_linux_eus_compute_node7.5
redhat:enterprise_linux_eus_compute_node7.6
redhat:enterprise_linux_eus_compute_node7.7
redhat:enterprise_linux_for_ibm_z_systems7.0_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.4_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.5_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.6_s390x
redhat:enterprise_linux_for_ibm_z_systems_eus7.7_s390x
redhat:enterprise_linux_for_power_big_endian7.0_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.4_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.5_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.6_ppc64
redhat:enterprise_linux_for_power_big_endian_eus7.7_ppc64
redhat:enterprise_linux_for_power_little_endian7.0_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.4_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.5_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.6_ppc64le
redhat:enterprise_linux_for_power_little_endian_eus7.7_ppc64le
redhat:enterprise_linux_for_scientific_computing7.0
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_aus7.7
redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions7.4_ppc64le
redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions7.6_ppc64le
redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions7.7_ppc64le
redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions9.2_ppc64le
redhat:enterprise_linux_server_tus7.4
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_server_tus7.7
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pjfr-qf3p-3q25Mavenorg.apache.tomcat.embed:tomcat-embed-core>=7.0.0 <7.0.797.0.79

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moretomcat6, tomcat6-lib, tomcat6-javadoc and 6 more0:6.0.24-111.el6_9RHSA-2017:3080
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moretomcat, tomcat-lib, tomcat-jsvc and 7 more0:7.0.76-3.el7_4RHSA-2017:3081
Red Hatjboss_enterprise_web_server:2::el6httpd, mod_ldap, httpd-devel and 3 more0:2.2.26-57.ep6.el6RHSA-2017:3113
Red Hatjboss_enterprise_web_server:2::el6jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 3 more1:1.0.2h-14.jbcs.el6RHSA-2017:3113
Red Hatjboss_enterprise_web_server:2::el6mod_cluster-native, mod_cluster-native-debuginfo0:1.2.13-9.Final_redhat_2.ep6.el6RHSA-2017:3113
Red Hatjboss_enterprise_web_server:2::el6mod_ssl1:2.2.26-57.ep6.el6RHSA-2017:3113
Red Hatjboss_enterprise_web_server:2::el6tomcat6, tomcat6-lib, tomcat6-log4j and 8 more0:6.0.41-19_patch_04.ep6.el6RHSA-2017:3113
Red Hatjboss_enterprise_web_server:2::el6tomcat7, tomcat7-lib, tomcat7-log4j and 8 more0:7.0.54-28_patch_05.ep6.el6RHSA-2017:3113
Red Hatjboss_enterprise_web_server:2::el7httpd22, mod_ldap22, httpd22-devel and 3 more0:2.2.26-58.ep6.el7RHSA-2017:3113
Red Hatjboss_enterprise_web_server:2::el7jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 3 more1:1.0.2h-14.jbcs.el7RHSA-2017:3113
Red Hatjboss_enterprise_web_server:2::el7mod_cluster-native, mod_cluster-native-debuginfo0:1.2.13-9.Final_redhat_2.ep6.el7RHSA-2017:3113
Red Hatjboss_enterprise_web_server:2::el7mod_ssl221:2.2.26-58.ep6.el7RHSA-2017:3113
12 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Server 12-LTSStomcat7.0.82-7.16.1SUSE-SU-2017:3059-1

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat · SUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw affects Tomcat on Red Hat Enterprise Linux only when a specific context is configured with readonly=false. The default configuration has a readonly context, so it is not affected.

Red Hat's mitigation

Ensure that readonly is set to true (the default) for the DefaultServlet, WebDAV servlet or application context.

Block HTTP methods that permit resource modification for untrusted users.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6tomcat6-0:6.0.24-111.el6_9Fixed 2017-10-30RHSA-2017:3080
Red Hat Enterprise Linux 7tomcat-0:7.0.76-3.el7_4Fixed 2017-10-30RHSA-2017:3081
Red Hat JBoss Enterprise Web Server 2 for RHEL 6httpd-0:2.2.26-57.ep6.el6Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 6jbcs-httpd24-openssl-1:1.0.2h-14.jbcs.el6Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 6mod_cluster-native-0:1.2.13-9.Final_redhat_2.ep6.el6Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 6tomcat6-0:6.0.41-19_patch_04.ep6.el6Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 6tomcat7-0:7.0.54-28_patch_05.ep6.el6Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7httpd22-0:2.2.26-58.ep6.el7Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7jbcs-httpd24-openssl-1:1.0.2h-14.jbcs.el7Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7mod_cluster-native-0:1.2.13-9.Final_redhat_2.ep6.el7Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7tomcat6-0:6.0.41-19_patch_04.ep6.el7Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7tomcat7-0:7.0.54-28_patch_05.ep6.el7Fixed 2017-11-02RHSA-2017:3113
Red Hat JBoss Web Server 2.1tomcat6Fixed 2017-11-02RHSA-2017:3114
Red Hat JBoss Data Grid 6jbosswebNot affected
Red Hat JBoss Data Virtualization 6jbosswebNot affected
Red Hat JBoss Enterprise Application Platform 6jbosswebNot affected
Red Hat JBoss Fuse 6jbosswebNot affected
Red Hat JBoss Operations Network 3jbosswebNot affected
Red Hat JBoss Portal 6jbosswebNot affected
Red Hat Software Collectionsrh-java-common-tomcatNot affected
12 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-12615.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • netw0rk7/CVE-2017-12615-Home-Lab Harbor Check: matches CVE 0 stars, Java, created
    CVE-2017-12615 Tomcat: Remote Code Execution via JSP Upload Home Lab for Red Teaming, Penetration Testing
  • CyberCTF/vulhub-tomcat-cve-2017-12615 0 stars, Shell, created
    Vulhub tomcat/CVE-2017-12615: Tomcat 8.5.19 PUT JSP upload, run with Isoloom

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template Apache Tomcat Servers - Remote Code Execution
  • Emerging Threats Open ET EXPLOIT Tomcat File Upload Payload Request (CVE-2017-12615) sid 2027517
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Tomcat Possible CVE-2017-12617 JSP Upload Bypass Attempt sid 2024808
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Tomcat Possible CVE-2017-12617 JSP Upload Bypass Attempt sid 2024809
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Tomcat Possible CVE-2017-12617 JSP Upload Bypass Attempt sid 2024810
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Tomcat Possible CVE-2017-12617 JSP Upload Bypass Attempt sid 2024811
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Tomcat Possible CVE-2017-12617 JSP Upload Bypass Attempt sid 2024812
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Tomcat Possible CVE-2017-12617 JSP Upload Bypass Attempt sid 2024813

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON