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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Tomcat | 7.0.0 to 7.0.79 | — |
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.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | tomcat | 7.0.82-7.16.1 | SUSE-SU-2017:3059-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
Exploit-DB 1
- Apache Tomcat < 9.0.1 (Beta) / < 8.5.23 / < 8.0.47 / < 7.0.8 - JSP Upload Bypass / Remote Code Execution (1) EDB-42953 · webapps · Sep 20, 2017
GitHub 19 repositories · most starred shown
-
lizhianyuguangming/TomcatScanPro ★ 300 · Aug 29, 2024
tomcat自动化漏洞扫描利用工具,支持批量弱口令检测、后台部署war包getshell、CVE-2017-12615 文件上传、CVE-2020-1938/CNVD-2020-10487 文件包含
-
tpt11fb/AttackTomcat ★ 259 · Nov 13, 2022
Tomcat常见漏洞GUI利用工具。CVE-2017-12615 PUT文件上传漏洞、tomcat-pass-getshell 弱认证部署war包、弱口令爆破、CVE-2020-1938 Tomcat AJP文件读取/包含
-
breaktoprotect/CVE-2017-12615 ★ 112 · Sep 23, 2017
POC Exploit for Apache Tomcat 7.0.x CVE-2017-12615 PUT JSP vulnerability.
-
xiaokp7/Tomcat_PUT_GUI_EXP ★ 11 · Mar 10, 2023
Tomcat PUT方法任意文件写入(CVE-2017-12615)exp
-
mefulton/cve-2017-12615 ★ 10 · Sep 25, 2017
just a python script for cve-2017-12615
-
zi0Black/POC-CVE-2017-12615-or-CVE-2017-12717 ★ 6 · Oct 6, 2017
CVE-2017-12617 and CVE-2017-12615 for tomcat server
-
1337g/CVE-2017-12615 ★ 4 · Dec 26, 2017
CVE-2017-12615 Tomcat RCE (TESTED)
-
wsg00d/cve-2017-12615 ★ 3 · Nov 1, 2017
tomcat-put-cve-2017-12615
-
ianxtianxt/CVE-2017-12615 ★ 1 · Jan 20, 2020
CVE-2017-12615 批量脚本
-
BeyondCy/CVE-2017-12615 ★ 1 · Nov 28, 2017
Tomcat 远程代码执行漏洞 Exploit
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.
- Apache Tomcat Servers - Remote Code Execution http/cves/2017/CVE-2017-12615.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 7.0.0, < 7.0.79 | 7.0.79 | GHSA-pjfr-qf3p-3q25 |
Advisories 7
- RHSA-2017:3113 Red Hat Security Advisory: Red Hat JBoss Web Server security and bug fix update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- RHSA-2018:0466 Red Hat Security Advisory: Red Hat JBoss Web Server 3.1.0 Service Pack 2 security update Red Hat Security Advisories (RHSA) · Sep 21, 2026
- RHSA-2017:3081 Red Hat Security Advisory: tomcat security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2017:3080 Red Hat Security Advisory: tomcat6 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- SUSE-SU-2017:3059-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-0423 Apache Tomcat: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 20, 2025
- ELSA-2017-3081 Important: tomcat security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Oct 30, 2017
References
- RHSA-2017:3113 vendor-advisory
- RHSA-2017:3080 vendor-advisory
- 1039392 vdb-entry
- [announce] 20170919 [SECURITY] CVE-2017-12615 Apache Tomcat Remote Code Execution via JSP upload mailing-list
- https://www.synology.com/support/security/Synology_SA_17_54_Tomcat
- RHSA-2018:0465 vendor-advisory
- http://breaktoprotect.blogspot.com/2017/09/the-case-of-cve-2017-12615-tomcat-7-put.html
- RHSA-2017:3114 vendor-advisory
- 100901 vdb-entry
- RHSA-2018:0466 vendor-advisory
- 42953 exploit
- https://security.netapp.com/advisory/ntap-20171018-0001/
- https://github.com/breaktoprotect/CVE-2017-12615
- RHSA-2017:3081 vendor-advisory
- [tomcat-dev] 20190325 svn commit: r1856174 [22/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/ mailing-list
- [tomcat-dev] 20190413 svn commit: r1857494 [16/20] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list
- [tomcat-dev] 20190415 svn commit: r1857582 [17/22] - in /tomcat/site/trunk: docs/ xdocs/stylesheets/ mailing-list
- [announce] 20200131 Apache Software Foundation Security Report: 2019 mailing-list
- [tomcat-dev] 20200213 svn commit: r1873980 [27/34] - /tomcat/site/trunk/docs/ mailing-list