# CVE-2017-12615: Apache Tomcat on Windows Remote Code Execution

> Attackers can upload and execute malicious JSP files on Windows Tomcat servers if HTTP PUT is enabled, leading to remote code execution.

- **Severity:** High 8.1 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 25 Mar 2022 (CISA KEV), used in ransomware
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 19 Sep 2017
- **Updated:** 6 Aug 2026
- **Also known as:** GHSA-pjfr-qf3p-3q25

## What is CVE-2017-12615?

CVE-2017-12615 is a high-severity vulnerability in Apache Tomcat, published on 19 Sep 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

Weakness: CWE-434 (Unrestricted Upload of File with Dangerous Type)

## Which versions are affected by CVE-2017-12615?

2 open source packages ship an affected version, including org.apache.tomcat.embed:tomcat-embed-core. It affects 22 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 7.0.0 | 7.0.79 |
| `org.apache.tomcat.embed:tomcat-embed-core` | Maven | From 7.0.0 | 7.0.79 |

Products: Apache Tomcat, Netapp 7-Mode Transition Tool, Netapp Oncommand Balance, Netapp Oncommand Shift, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Eus, Redhat Enterprise Linux Eus Compute Node, Redhat Enterprise Linux for Ibm Z Systems, Redhat Enterprise Linux for Ibm Z Systems Eus, Redhat Enterprise Linux for Power Big Endian, Redhat Enterprise Linux for Power Big Endian Eus, Redhat Enterprise Linux for Power Little Endian, Redhat Enterprise Linux for Power Little Endian Eus, Redhat Enterprise Linux for Scientific Computing, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus, Redhat Enterprise Linux Server for Power Little Endian Update Services for Sap Solutions, Redhat Enterprise Linux Server Tus, Redhat Enterprise Linux Server Update Services for Sap Solutions, Redhat Enterprise Linux Workstation and 2 more.

## How do I fix CVE-2017-12615?

Upgrade org.apache.tomcat.embed:tomcat-embed-core to 7.0.79 or later. US federal agencies must fix it by 15 Apr 2022.

## Is CVE-2017-12615 being exploited?

Yes. Attackers have exploited CVE-2017-12615 in the wild since at least 25 Mar 2022, including in ransomware campaigns.

Public exploit code:

- tomcat自动化漏洞扫描利用工具，支持批量弱口令检测、后台部署war包getshell、CVE-2017-12615 文件上传、CVE-2020-1938/CNVD-2020-10487 文件包含 (github_poc): https://github.com/lizhianyuguangming/TomcatScanPro
- Tomcat常见漏洞GUI利用工具。CVE-2017-12615 PUT文件上传漏洞、tomcat-pass-getshell 弱认证部署war包、弱口令爆破、CVE-2020-1938 Tomcat AJP文件读取/包含 (github_poc): https://github.com/tpt11fb/AttackTomcat
- POC Exploit for Apache Tomcat 7.0.x CVE-2017-12615 PUT JSP vulnerability. (github_poc): https://github.com/breaktoprotect/CVE-2017-12615
- Tomcat PUT方法任意文件写入（CVE-2017-12615）exp (github_poc): https://github.com/xiaokp7/Tomcat_PUT_GUI_EXP
- just a python script for cve-2017-12615 (github_poc): https://github.com/mefulton/cve-2017-12615
- CVE-2017-12617 and CVE-2017-12615 for tomcat server (github_poc): https://github.com/zi0Black/POC-CVE-2017-12615-or-CVE-2017-12717

## Other vulnerabilities in Apache Tomcat

- [CVE-2025-24813](https://insights.sbomify.com/CVE-2025-24813/): Apache Tomcat Path Equivalence (critical 10.0, exploited in the wild)
- [CVE-2016-8735](https://insights.sbomify.com/CVE-2016-8735/): Apache Tomcat Remote Code Execution (critical 9.8, exploited in the wild)
- [CVE-2017-12617](https://insights.sbomify.com/CVE-2017-12617/): Apache Tomcat Remote Code Execution (high 8.1, exploited in the wild)
- [CVE-2026-34486](https://insights.sbomify.com/CVE-2026-34486/): Apache Tomcat Missing Encryption of Sensitive Data (high 7.5, exploited in the wild)
- [CVE-2026-65637](https://insights.sbomify.com/CVE-2026-65637/): Apache Tomcat: HTTP/2 no-authority bypass of strict SNI validation - CVE-2026-32990 fix incomplete (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2017-12615 and fix it if it is affected.

What it is: CVE-2017-12615 is a high-severity vulnerability in Apache Tomcat, published on 19 Sep 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2017-12615 in the wild since at least 25 Mar 2022, including in ransomware campaigns.

Affected packages and fixed versions:
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 7.0.0; fixed in 7.0.79
- org.apache.tomcat.embed:tomcat-embed-core (Maven): affected from 7.0.0; fixed in 7.0.79

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2017-12615/ (Markdown: https://insights.sbomify.com/CVE-2017-12615/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2017-12615
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2017-12615
- OSV: https://osv.dev/vulnerability/CVE-2017-12615

---
From sbomify Insights: https://insights.sbomify.com/CVE-2017-12615/
Summaries are generated and may contain mistakes; the official description above is the record.
