Skip to content
OpenAdvisories
High · 8.1 Known exploited Scanner template Public exploit CVE-2017-12617 EUVD-2022-5811GHSA-xjgh-84hx-56c5

Unrestricted Upload of File with Dangerous Type Apache Tomcat

Published Oct 3, 2017 · Updated Oct 21, 2025 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache Tomcat 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46, 7.0.0 to 7.0.81 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 7 tomcat7 7.0.28-4+deb7u16 DLA-1166-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS tomcat8 8.5.30-1ubuntu1.2 USN-3665-1
Ubuntu 16.04 LTS tomcat8 8.0.32-1ubuntu1.6 USN-3665-1
Ubuntu 14.04 LTS tomcat7 7.0.52-1ubuntu0.14 USN-3665-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS tomcat7 No fix yet —
Ubuntu Pro 16.04 LTS tomcat7 7.0.68-1ubuntu0.4+esm3 USN-7282-1
ReleasePackageFixed inAdvisory
RHEL 7 tomcat +9 7.0.76-3.el7_4 RHSA-2017:3081
RHEL 6 tomcat6 +8 6.0.24-111.el6_9 RHSA-2017:3080
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 3 mod_cluster +2 1.3.8-2.Final_redhat_2.1.ep7.el6 RHSA-2018:0466
Red Hat JBoss Web Server 3 tomcat-native 1.2.8-11.redhat_11.ep7.el6 RHSA-2018:0466
Red Hat JBoss Web Server 3 tomcat-vault +2 1.1.6-1.Final_redhat_1.1.ep7.el6 RHSA-2018:0466
Red Hat JBoss Web Server 3 tomcat7 +11 7.0.70-25.ep7.el6 RHSA-2018:0466
Red Hat JBoss Web Server 3 tomcat8 +11 8.0.36-29.ep7.el6 RHSA-2018:0466
Red Hat JBoss Web Server 2 httpd +4 2.2.26-57.ep6.el6 RHSA-2017:3113
Red Hat JBoss Web Server 2 httpd22 +4 2.2.26-58.ep6.el7 RHSA-2017:3113
Red Hat JBoss Web Server 2 jbcs-httpd24-openssl +4 1:1.0.2h-14.jbcs.el6 RHSA-2017:3113
Red Hat JBoss Web Server 2 mod_cluster-native 1.2.13-9.Final_redhat_2.ep6.el6 RHSA-2017:3113
Red Hat JBoss Web Server 2 mod_ssl 1:2.2.26-57.ep6.el6 RHSA-2017:3113
Red Hat JBoss Web Server 2 mod_ssl22 1:2.2.26-58.ep6.el7 RHSA-2017:3113
Red Hat JBoss Web Server 2 tomcat6 +10 6.0.41-19_patch_04.ep6.el6 RHSA-2017:3113
Red Hat JBoss Web Server 2 tomcat7 +10 7.0.54-28_patch_05.ep6.el6 RHSA-2017:3113
Red Hat JBoss EAP 6 hornetq 2.3.25-25.SP23_redhat_1.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
Red Hat JBoss EAP 6 infinispan +4 5.2.23-1.Final_redhat_1.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
Red Hat JBoss EAP 6 ironjacamar-eap6 +9 1.0.41-1.Final_redhat_1.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
Red Hat JBoss EAP 6 jboss-as-ee +62 7.5.19-2.Final_redhat_2.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
Red Hat JBoss EAP 6 jboss-ec2-eap +1 7.5.19-2.Final_redhat_2.ep6.el6 RHSA-2018:0275
Red Hat JBoss EAP 6 jboss-ejb-client 1.0.40-1.Final_redhat_1.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
Red Hat JBoss EAP 6 jboss-remoting3 3.3.12-2.Final_redhat_2.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
Red Hat JBoss EAP 6 jbossweb 7.5.27-1.Final_redhat_1.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
Red Hat JBoss EAP 6 jbossws-cxf 4.3.7-1.Final_redhat_1.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
Red Hat JBoss EAP 6 picketlink-bindings 2.5.4-22.SP18_redhat_1.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
Red Hat JBoss EAP 6 picketlink-federation 2.5.4-20.SP18_redhat_1.1.ep6.el5 RHSA-2018:0271, RHSA-2018:0270, RHSA-2018:0268
ReleasePackageFixed inAdvisory
SLES 12 SP3 tomcat 8.0.43-29.5.1 SUSE-SU-2017:3039-1
SLES 12 SP2 tomcat 8.0.43-29.5.1 SUSE-SU-2017:3039-1
SLES 12 SP1 tomcat 8.0.43-10.24.1 SUSE-SU-2017:3279-1
SLES 12 tomcat 7.0.82-7.16.1 SUSE-SU-2017:3059-1
SLES 11 SP4 tomcat6 6.0.53-0.57.19.1 SUSE-SU-2021:14705-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP3 tomcat 8.0.43-29.5.1 SUSE-SU-2017:3039-1
SLES for SAP 12 SP2 tomcat 8.0.43-29.5.1 SUSE-SU-2017:3039-1
SLES for SAP 12 SP1 tomcat 8.0.43-10.24.1 SUSE-SU-2017:3279-1
SUSE OpenStack Cloud 6 tomcat 8.0.43-10.24.1 SUSE-SU-2017:3279-1
SUSE Linux Enterprise Point of Sale 11 SP3 tomcat6 6.0.53-0.57.19.1 SUSE-SU-2021:14705-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed tomcat 9.0.36-8.4 openSUSE-SU-2024:11468-1
openSUSE Tumbleweed tomcat10 10.1.14-1.1 openSUSE-SU-2024:13441-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 tomcat +9 7.0.76-3.el7_4 ELSA-2017-3081

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

GitHub 10 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.tomcat:tomcat-catalina >= 9.0.0.M1, < 9.0.1 9.0.1 GHSA-xjgh-84hx-56c5
Maven org.apache.tomcat:tomcat-catalina >= 8.5.0, < 8.5.23 8.5.23 GHSA-xjgh-84hx-56c5
Maven org.apache.tomcat:tomcat-catalina >= 8.0.0-RC1, < 8.0.47 8.0.47 GHSA-xjgh-84hx-56c5
Maven org.apache.tomcat:tomcat-catalina >= 7.0.0, < 7.0.82 7.0.82 GHSA-xjgh-84hx-56c5
Maven org.apache.tomcat.embed:tomcat-embed-core >= 9.0.0.M1, < 9.0.1 9.0.1 GHSA-xjgh-84hx-56c5
Maven org.apache.tomcat.embed:tomcat-embed-core >= 8.5.0, < 8.5.23 8.5.23 GHSA-xjgh-84hx-56c5
Maven org.apache.tomcat.embed:tomcat-embed-core >= 8.0.0-RC1, < 8.0.47 8.0.47 GHSA-xjgh-84hx-56c5
Maven org.apache.tomcat.embed:tomcat-embed-core >= 7.0.0, < 7.0.82 7.0.82 GHSA-xjgh-84hx-56c5

Advisories 22

References