patchminder
Exploited in the wild · CISA KEV CVE-2017-12617

Unrestricted file uploadin Apache Tomcat.

Published 3 Oct 2017 · Updated 21 Oct 2025 · Every fact sourced

JSONCite
Is it exploited?
Yes

On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 25 Mar 2022.

On CISA's listAttack code is public
Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 100.0% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

CISA: 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.

What to do now
  • Upgrade org.apache.tomcat:tomcat-catalina (Maven) to 7.0.82, 8.0.47, 8.5.23, 9.0.1 or later, whichever matches your release line.
  • Upgrade org.apache.tomcat.embed:tomcat-embed-core (Maven) to 7.0.82, 8.0.47, 8.5.23, 9.0.1 or later, whichever matches your release line.
  • CISA requires US federal agencies to fix it by 15 Apr 2022.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache Tomcat
9.0.0.M1 to 9.0.0
Not confirmed
CVE record
Apache Tomcat
8.5.0 to 8.5.22
Not confirmed
CVE record
Apache Tomcat
8.0.0.RC1 to 8.0.46
Not confirmed
CVE record
Apache Tomcat
7.0.0 to 7.0.81
Not confirmed
CVE record
org.apache.tomcat:tomcat-catalina (Maven)
9.0.0.M1 to before 9.0.1
9.0.1
GitHub advisory
org.apache.tomcat:tomcat-catalina (Maven)
8.5.0 to before 8.5.23
8.5.23
GitHub advisory
org.apache.tomcat:tomcat-catalina (Maven)
8.0.0-RC1 to before 8.0.47
8.0.47
GitHub advisory
org.apache.tomcat:tomcat-catalina (Maven)
7.0.0 to before 7.0.82
7.0.82
GitHub advisory
org.apache.tomcat.embed:tomcat-embed-core (Maven)
9.0.0.M1 to before 9.0.1
9.0.1
GitHub advisory
org.apache.tomcat.embed:tomcat-embed-core (Maven)
8.5.0 to before 8.5.23
8.5.23
GitHub advisory
org.apache.tomcat.embed:tomcat-embed-core (Maven)
8.0.0-RC1 to before 8.0.47
8.0.47
GitHub advisory
org.apache.tomcat.embed:tomcat-embed-core (Maven)
7.0.0 to before 7.0.82
7.0.82
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 7 Aug 2017
    CVE ID reserved by apache.
  2. 3 Oct 2017
    Published in the CVE List.
  3. 3 Oct 2017
    Metasploit module: Tomcat RCE via JSP Upload Bypass.
  4. 5 Oct 2017
    First public proof of concept on GitHub.
  5. 25 Mar 2022
    Added to CISA's Known Exploited Vulnerabilities list.
  6. 21 Oct 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
2 entries
GitHub proof of concepts
11 repositories
MetasploitTomcat RCE via JSP Upload Bypassrank excellent
Exploit-DBEDB-ID 43008remote exploit for java, published 17 Oct 2017, verified by Exploit-DB
Exploit-DBEDB-ID 42966web application exploit for jsp, published 9 Oct 2017, verified by Exploit-DB
GitHubno warning signs foundcyberheartmi9/CVE-2017-12617399 stars · created 5 Oct 2017Apache Tomcat < 9.0.1 (Beta) / < 8.5.23 / < 8.0.47 / < 7.0.8 · JSP Upload Bypass / Remote Code Execution
GitHubno warning signs foundLongWayHomie/CVE-2017-126175 stars · created 10 Dec 2021CVE-2017-12617 is a critical vulnerability leading to Remote Code Execution (RCE) in Apache Tomcat.
GitHubno warning signs foundygouzerh/CVE-2017-126172 stars · created 14 Jan 2019Proof of Concept · RCE Exploitation : Web Shell on Apache Tomcat · Ensimag January 2018
GitHubno warning signs foundtyranteye666/tomcat-cve-2017-126171 stars · created 4 Feb 2021Apache Tomcat < 9.0.1 (Beta) / < 8.5.23 / < 8.0.47 / < 7.0.8 · JSP Upload Bypass / Remote Code Execution for Python3
GitHubno warning signs foundjptr218/tc_hack1 stars · created 27 Jul 2021An implementation of CVE-2017-12617
GitHubno warning signs founddevcoinfet/CVE-2017-126170 stars · created 9 Feb 2018Code put together from a few peoples ideas credit given don't use maliciously please
GitHubno warning signs foundqiantu88/CVE-2017-126170 stars · created 19 Dec 2018
GitHubno warning signs foundscirusvulgaris/CVE-2017-126170 stars · created 28 Jun 2024
GitHubno warning signs foundyZee00/CVE-2017-126170 stars · created 4 Jul 2024CVE-2017-12617
GitHubno warning signs foundDevaDJ/CVE-2017-126170 stars · created 13 Dec 2024Improved version of PikaChu CVE
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Tomcat vulnerabilities

Same weakness: Unrestricted file upload

All CWE-434 vulnerabilities

References
Cite this page

Patchminder. CVE-2017-12617: Unrestricted file upload in Apache Tomcat. https://patchminder.com/cve/cve-2017-12617/ (accessed 5 December 2026).