CVE-2017-12615: Apache Tomcat remote code execution via JSP upload
- Vendors
- NetAppRed HatApache Software Foundation
CVE-2017-12615 is an input-validation vulnerability in Apache Tomcat's handling of HTTP PUT uploads. Apache Tomcat 7.0.0 through 7.0.79 on Windows is affected when HTTP PUT is enabled through a writable servlet context, such as by setting the DefaultServlet readonly initialization parameter to false. An attacker can upload a JSP file using a specially crafted request and subsequently request it to execute its embedded code on the server. Red Hat also identifies affected packaged Tomcat deployments on RHEL under writable-context configurations. The default read-only configuration does not expose this condition.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits remote code execution on the Tomcat server and can compromise confidentiality, integrity, and availability. Observed exploitation includes deployment of webshells and execution of commands that download and launch malware. The available information does not establish automatic privilege escalation beyond the compromised server execution context.
Mitigation
If you can’t patch tonight, do this now.
Retain or restore readonly=true for the DefaultServlet, WebDAV servlet, and affected application contexts. Block HTTP PUT and other resource-modifying HTTP methods for untrusted users. Default read-only Tomcat configurations are not affected by the writable-context condition.
Remediation
Patch, then assume compromise.
Apply the vendor security update for the affected Tomcat distribution. Apache Tomcat 7.0.81 contains a fix for CVE-2017-12615, but that fix is bypassed by the separate CVE-2017-12617 vulnerability; select an update that addresses both issues. Red Hat fixes include RHSA-2017:3080 for RHEL 6 tomcat6, RHSA-2017:3081 for RHEL 7 tomcat, and RHSA-2017:3113 for JBoss Enterprise Web Server 2. Back up affected installations, applications, and configuration before updating.
Exploits
11 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2017-12615 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 25, 2022.
- Is there a public exploit for CVE-2017-12615?
- Yes. Mallory tracks 11 public exploits or proofs of concept for CVE-2017-12615, the earliest disclosed Sep 25, 2017.
- Is there a patch for CVE-2017-12615?
- Apply the vendor security update for the affected Tomcat distribution. Apache Tomcat 7.0.81 contains a fix for CVE-2017-12615, but that fix is bypassed by the separate CVE-2017-12617 vulnerability; select an update that addresses both issues.
- What products are affected by CVE-2017-12615?
- Apache Software Foundation Tomcat, Red Hat Enterprise Linux Desktop, Red Hat Enterprise Linux Eus, Red Hat Enterprise Linux Eus Compute Node, Red Hat Enterprise Linux For Ibm Z Systems, and at least 17 more.
- How severe is CVE-2017-12615?
- CVE-2017-12615 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 99.7% (100th percentile) as of Oct 16, 2026.
Recent activity
24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.