cve.bz

CVE-2017-12617 Apache Tomcat Remote Code Execution Vulnerability

8.1 highKEVExploitEPSS >99.9%Fix available

High (8.1) in Apache Tomcat. In CISA KEV since 2022-03-25. EPSS >99.9% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat:tomcat-catalina 7.0.82, 8.0.47, 8.5.23.

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

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.9% (unchanged from >99.9% a week ago; >99.9% 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
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-02-04. 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-12617 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-12617?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-12617?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-12617 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 before 7.0.82
apache:tomcatfrom 8.0 before 8.0.47
apache:tomcatfrom 8.5.0 before 8.5.23
apache:tomcatfrom 9.0.0 before 9.0.1
canonical:ubuntu_linux12.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
canonical:ubuntu_linux18.04
oracle:agile_product_lifecycle_management9.3.3
oracle:agile_product_lifecycle_management9.3.4
oracle:agile_product_lifecycle_management9.3.5
oracle:agile_product_lifecycle_management9.3.6
oracle:communications_instant_messaging_server10.0.1
oracle:endeca_information_discovery_integrator3.1.0
oracle:endeca_information_discovery_integrator3.2.0
oracle:enterprise_manager_for_mysql_database12.1.0.4.0
oracle:financial_services_analytical_applications_infrastructurefrom 7.3.3.0.0 through 7.3.5.3.0
oracle:financial_services_analytical_applications_infrastructurefrom 8.0.0.0.0 through 8.0.9.0.0
oracle:fmw_platform12.2.1.2.0
oracle:fmw_platform12.2.1.3.0
oracle:health_sciences_empirica_inspections1.0.1.1
oracle:hospitality_guest_access4.2.0
oracle:hospitality_guest_access4.2.1
oracle:instantis_enterprisetrack17.1
oracle:instantis_enterprisetrack17.2
oracle:management_pack11.2.1.0.13
oracle:micros_lucas2.9.5
oracle:micros_retail_xbri_loss_prevention10.0.1
oracle:micros_retail_xbri_loss_prevention10.5.0
oracle:micros_retail_xbri_loss_prevention10.6.0
oracle:micros_retail_xbri_loss_prevention10.7.0
oracle:micros_retail_xbri_loss_prevention10.8.0
oracle:micros_retail_xbri_loss_prevention10.8.1
oracle:mysql_enterprise_monitorthrough 3.3.6.3293
oracle:mysql_enterprise_monitorfrom 3.4.0 through 3.4.4.4226
oracle:mysql_enterprise_monitorfrom 4.0.0 through 4.0.0.5135
oracle:retail_advanced_inventory_planning13.2
oracle:retail_advanced_inventory_planning13.4
oracle:retail_advanced_inventory_planning14.1
oracle:retail_advanced_inventory_planning15.0
oracle:retail_back_office14.0.4
oracle:retail_back_office14.1.3
oracle:retail_central_office14.0.4
oracle:retail_central_office14.1.3
oracle:retail_convenience_and_fuel_pos_software2.1.132
oracle:retail_eftlink1.1.124
oracle:retail_eftlink15.0.1
oracle:retail_eftlink16.0.2
oracle:retail_insights14.0
oracle:retail_insights14.1
oracle:retail_insights15.0
oracle:retail_insights16.0
oracle:retail_invoice_matching12.0
oracle:retail_invoice_matching13.0
oracle:retail_invoice_matching13.1
oracle:retail_invoice_matching13.2
oracle:retail_invoice_matching14.0
oracle:retail_invoice_matching14.1
oracle:retail_invoice_matching15.0
oracle:retail_invoice_matching16.0
oracle:retail_order_broker5.0
oracle:retail_order_broker5.1
oracle:retail_order_broker5.2
oracle:retail_order_broker15.0
oracle:retail_order_broker16.0
oracle:retail_order_management_system4.0
oracle:retail_order_management_system4.5
oracle:retail_order_management_system4.7
oracle:retail_order_management_system5.0
oracle:retail_point-of-service14.0.4
oracle:retail_point-of-service14.1.3
oracle:retail_price_management12.0
oracle:retail_price_management13.0
oracle:retail_price_management13.1
oracle:retail_price_management13.2
oracle:retail_price_management14.0
oracle:retail_price_management14.1
oracle:retail_price_management15.0
oracle:retail_price_management16.0
oracle:retail_returns_management2.3.8
oracle:retail_returns_management2.4.9
oracle:retail_returns_management14.0.4
oracle:retail_returns_management14.1.3
oracle:retail_store_inventory_management12.0.12
oracle:retail_store_inventory_management13.0.7
oracle:retail_store_inventory_management13.1.9
oracle:retail_store_inventory_management13.2.9
oracle:retail_store_inventory_management14.0.4
oracle:retail_store_inventory_management14.1.3
oracle:retail_store_inventory_management15.0.2
oracle:retail_store_inventory_management16.0.1
oracle:retail_xstore_point_of_service6.0.11
oracle:retail_xstore_point_of_service7.0.6
oracle:retail_xstore_point_of_service7.1.6
oracle:retail_xstore_point_of_service15.0.1
oracle:transportation_management6.3.1
oracle:transportation_management6.3.2
oracle:transportation_management6.3.3
oracle:transportation_management6.3.4
oracle:transportation_management6.3.5
oracle:transportation_management6.3.6
oracle:transportation_management6.3.7
oracle:tuxedo_system_and_applications_monitor12.1.3.0.0
oracle:webcenter_sites11.1.1.8.0
oracle:workload_manager12.2.0.1
debian:debian_linux7.0
netapp:active_iq_unified_manager7.3 and later
netapp:active_iq_unified_manager9.5 and later
redhat:fuse1.0
redhat:jboss_enterprise_application_platform6.0.0
redhat:jboss_enterprise_application_platform6.4.0
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_systems6.0_s390x
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_endian6.0_ppc64
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
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_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_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-xjgh-84hx-56c5Mavenorg.apache.tomcat:tomcat-catalina>=9.0.0.M1 <9.0.19.0.1
GHSA-xjgh-84hx-56c5Mavenorg.apache.tomcat:tomcat-catalina>=8.5.0 <8.5.238.5.23
GHSA-xjgh-84hx-56c5Mavenorg.apache.tomcat:tomcat-catalina>=8.0.0-RC1 <8.0.478.0.47
GHSA-xjgh-84hx-56c5Mavenorg.apache.tomcat:tomcat-catalina>=7.0.0 <7.0.827.0.82
GHSA-xjgh-84hx-56c5Mavenorg.apache.tomcat.embed:tomcat-embed-core>=9.0.0.M1 <9.0.19.0.1
GHSA-xjgh-84hx-56c5Mavenorg.apache.tomcat.embed:tomcat-embed-core>=8.5.0 <8.5.238.5.23
GHSA-xjgh-84hx-56c5Mavenorg.apache.tomcat.embed:tomcat-embed-core>=8.0.0-RC1 <8.0.478.0.47
GHSA-xjgh-84hx-56c5Mavenorg.apache.tomcat.embed:tomcat-embed-core>=7.0.0 <7.0.827.0.82

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7tomcat77.0.28-4+deb7u16DLA-1166-1
Ubuntu14.04:LTStomcat77.0.52-1ubuntu0.14UBUNTU-CVE-2017-12617 USN-3665-1
Ubuntu16.04:LTStomcat88.0.32-1ubuntu1.6UBUNTU-CVE-2017-12617 USN-3665-1
Ubuntu18.04:LTStomcat88.5.30-1ubuntu1.2USN-3665-1
UbuntuPro:16.04:LTStomcat77.0.68-1ubuntu0.4+esm3UBUNTU-CVE-2017-12617 USN-7282-1
UbuntuPro:18.04:LTStomcat7no fix listedUBUNTU-CVE-2017-12617
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_application_platform:6::el5hornetq0:2.3.25-25.SP23_redhat_1.1.ep6.el5RHSA-2018:0271
Red Hatjboss_enterprise_application_platform:6::el5infinispan, infinispan-core, infinispan-client-hotrod and 2 more0:5.2.23-1.Final_redhat_1.1.ep6.el5RHSA-2018:0271
Red Hatjboss_enterprise_application_platform:6::el5ironjacamar-eap6, ironjacamar-jdbc-eap6, ironjacamar-core-api-eap6 and 7 more0:1.0.41-1.Final_redhat_1.1.ep6.el5RHSA-2018:0271
Red Hatjboss_enterprise_application_platform:6::el5jboss-as-ee, jboss-as-cli, jboss-as-cmp and 60 more0:7.5.19-2.Final_redhat_2.1.ep6.el5RHSA-2018:0271
Red Hatjboss_enterprise_application_platform:6::el5jboss-ejb-client0:1.0.40-1.Final_redhat_1.1.ep6.el5RHSA-2018:0271
Red Hatjboss_enterprise_application_platform:6::el5jboss-remoting30:3.3.12-2.Final_redhat_2.1.ep6.el5RHSA-2018:0271
Red Hatjboss_enterprise_application_platform:6::el5jbossweb0:7.5.27-1.Final_redhat_1.1.ep6.el5RHSA-2018:0271
Red Hatjboss_enterprise_application_platform:6::el5jbossws-cxf0:4.3.7-1.Final_redhat_1.1.ep6.el5RHSA-2018:0271
Red Hatjboss_enterprise_application_platform:6::el5picketlink-bindings0:2.5.4-22.SP18_redhat_1.1.ep6.el5RHSA-2018:0271
Red Hatjboss_enterprise_application_platform:6::el5picketlink-federation0:2.5.4-20.SP18_redhat_1.1.ep6.el5RHSA-2018:0271
43 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSStomcat66.0.53-0.57.19.1SUSE-SU-2021:14705-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1, OpenStack Cloud 6tomcat8.0.43-10.24.1SUSE-SU-2017:3279-1
SUSELinux Enterprise Server 12 SP2, Linux Enterprise Server 12 SP3, Linux Enterprise Server for Raspberry Pi 12 SP2 and 2 moretomcat8.0.43-29.5.1SUSE-SU-2017:3039-1
SUSELinux Enterprise Server 12-LTSStomcat7.0.82-7.16.1SUSE-SU-2017:3059-1
openSUSETumbleweedtomcat9.0.36-8.4openSUSE-SU-2024:11468-1
openSUSETumbleweedtomcat1010.1.14-1.1openSUSE-SU-2024:13441-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; 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: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

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 Fuse Intergration Services 2.0 based on Fuse 6.3 R8Fixed 2018-10-17RHSA-2018:2939
Red Hat JBoss Enterprise Application Platform 6.4jbosswebFixed 2018-02-05RHSA-2018:0269
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5hornetq-0:2.3.25-25.SP23_redhat_1.1.ep6.el5Fixed 2018-02-05RHSA-2018:0271
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5infinispan-0:5.2.23-1.Final_redhat_1.1.ep6.el5Fixed 2018-02-05RHSA-2018:0271
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5ironjacamar-eap6-0:1.0.41-1.Final_redhat_1.1.ep6.el5Fixed 2018-02-05RHSA-2018:0271
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jboss-as-appclient-0:7.5.19-2.Final_redhat_2.1.ep6.el5Fixed 2018-02-05RHSA-2018:0271
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jbossas-appclient-0:7.5.19-2.Final_redhat_2.1.ep6.el5Fixed 2018-02-05RHSA-2018:0271
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jbossas-bundles-0:7.5.19-2.Final_redhat_2.1.ep6.el5Fixed 2018-02-05RHSA-2018:0271
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jboss-as-cli-0:7.5.19-2.Final_redhat_2.1.ep6.el5Fixed 2018-02-05RHSA-2018:0271
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jboss-as-client-all-0:7.5.19-2.Final_redhat_2.1.ep6.el5Fixed 2018-02-05RHSA-2018:0271
Red Hat Enterprise Linux 5tomcat5Will not fix
Red Hat JBoss Data Grid 6jbosswebNot affected
Red Hat JBoss Data Virtualization 6jbosswebNot affected
Red Hat JBoss Enterprise Application Platform 5jbosswebWill not fix
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
232 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-12617.

Public exploits

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: 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.

  • lem0n817/CVE-2017-12617-POC 0 stars, created
    CVE-2017-12617 Apache Tomcat JSP upload RCE PoC (original by cyberheartmi9, MIT)

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 - Remote Code Execution
  • 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