Apache Software Foundation Apache Tomcat
Apache Tomcat on Windows Remote Code Execution Vulnerability
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 versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 7.0.0, < 7.0.79
Fixed in 7.0.79
from GitHub Security Advisory GHSA-pjfr-qf3p-3q25
Mitigation
Upgrade org.apache.tomcat.embed:tomcat-embed-core to 7.0.79 or later.
Timeline
Days relative to CVE publicationFirst public PoC 11 h after publication; added to CISA KEV 4.5 years after publication. First PoC: Apache Tomcat < 9.0.1 (Beta) / < 8.5.23 / < 8.0.47 / < 7.0.8 - JSP Upload Bypass / Remote Code Execution (1) (Exploit-DB, 20 Sep 2017).
PoC repositories
Found on GitHub.15 PoCs · 3 pending · 4 informational · 3 suspicious or fake
PoCs 15
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| breaktoprotect/CVE-2017-12615 | 23 Sep 2017 +3.7 d | 112 | PoC
Flags · score 20
Below the suspicion threshold (50); does not change the assessment. |
| mefulton/cve-2017-12615 | 25 Sep 2017 +6 d | 10 | PoC |
| zi0Black/POC-CVE-2017-12615-or-CVE-2017-12717 | 6 Oct 2017 +17 d | 6 | PoC |
| wsg00d/cve-2017-12615 | 1 Nov 2017 +43 d | 3 | PoC |
| 1337g/CVE-2017-12615 | 26 Dec 2017 +98 d | 4 | PoC |
| Seif-Naouali/Secu_Dev_2 | 13 Jan 2020 +2.3 y | 1 | PoC |
| cyberharsh/Tomcat-CVE-2017-12615 | 24 Jun 2020 +2.8 y | 0 | PoC |
| w0x68y/CVE-2017-12615-EXP | 12 Jan 2021 +3.3 y | 1 | PoC |
| xiaokp7/Tomcat_PUT_GUI_EXP | 10 Mar 2023 +5.5 y | 11 | PoC |
| wudidwo/CVE-2017-12615-poc | 19 Nov 2024 +7.2 y | 0 | PoC |
| ZapcoMan/TomcatVulnToolkit | 3 Jan 2025 +7.3 y | 10 | PoC via PoC Index |
| edyekomu/CVE-2017-12615-PoC | 21 Jun 2025 +7.8 y | 0 | PoC |
| Fa1c0n35/CVE-2017-12615 | 7 Nov 2025 +8.1 y | 0 | PoC |
| netw0rk7/CVE-2017-12615-Home-Lab | 17 Nov 2025 +8.2 y | 0 | PoC |
| CyberCTF/vulhub-tomcat-cve-2017-12615 | 8 Oct 2026 +9.1 y | 0 | PoC |
Pending 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| lizhianyuguangming/TomcatScanPro | 29 Aug 2024 +6.9 y | 300 | Pending |
| KBlackMeow/Matrix | 9 Mar 2026 +8.5 y | 2 | Pending · repository exceeds size limit via PoC Index |
| nouhaila2030/apache-tomcat-security-audit | 9 Oct 2026 +9.1 y | 0 | Pending |
Informational 4
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| BeyondCy/CVE-2017-12615 | 28 Nov 2017 +70 d | 1 | Informational · write-up |
| qiantu88/Tomcat-Exploit | 19 Dec 2018 +1.2 y | 1 | Informational · write-up |
| cved-sources/cve-2017-12615 | 17 Jan 2019 +1.3 y | 0 | Informational · write-up
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| ianxtianxt/CVE-2017-12615 | 20 Jan 2020 +2.3 y | 1 | Informational · write-up |
Suspicious or fake 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| tpt11fb/AttackTomcat | 13 Nov 2022 +5.1 y | 259 | Suspicious · score 60
Why suspicious
|
| xunjinghan/bounty-forge | 13 Oct 2026 +9.1 y | 4 | Fake |
| xunwmw/vuln-xiuxian | 13 Oct 2026 +9.1 y | 4 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | 42953 | unknown | 14 Nov 2026 |
| Exploit-DB | Apache Tomcat < 9.0.1 (Beta) / < 8.5.23 / < 8.0.47 / < 7.0.8 - JSP Upload Bypass / Remote Code Execution (1) | 20 Sep 2017 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Tomcat Servers - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 16 PoC reposPUT /1.jsp/
- Key headers
Accept: */*Accept-Language: en- Body markers
shell=@-=1.jspinapplication/x-www-form-urlencoded- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)- Seen in
- 3 repos: CyberCTF/vulhub-tomcat-cve-2017-12615, Fa1c0n35/CVE-2017-12615, cyberharsh/Tomcat-CVE-2017-12615
- Evidence
- CyberCTF/vulhub-tomcat-cve-2017-12615/app/README.md:53 CyberCTF/vulhub-tomcat-cve-2017-12615/app/README.zh-cn.md:51 Fa1c0n35/CVE-2017-12615/README.md:1 cyberharsh/Tomcat-CVE-2017-12615/README.md:54 cyberharsh/Tomcat-CVE-2017-12615/README.zh-cn.md:51
PUT /{var}.jsp/
- Key headers
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3Date: Wed, 12 Sep 2020 02:10:09 GMT- Body markers
<% out.write(JSP upload successfullyJSP file successfully uploaded via curlinapplication/json- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36- Seen in
- 3 repos: breaktoprotect/CVE-2017-12615, w0x68y/CVE-2017-12615-EXP, wsg00d/cve-2017-12615
- Evidence
- breaktoprotect/CVE-2017-12615/README.md:17 breaktoprotect/CVE-2017-12615/README.md:40 w0x68y/CVE-2017-12615-EXP/CVE-2017-12615.go:51 wsg00d/cve-2017-12615/tomcat-cve-2017-12615.py:37
GET /test.jsp
GET /isoloom-missing.txt
- Ports
- 8080
- Seen in
- 1 repo: CyberCTF/vulhub-tomcat-cve-2017-12615
- Evidence
- CyberCTF/vulhub-tomcat-cve-2017-12615/checks/put-allowed.sh:5
GET /manager/html
- Ports
- 80, 1080, 3128
- Seen in
- 1 repo: ZapcoMan/TomcatVulnToolkit
- Evidence
- ZapcoMan/TomcatVulnToolkit/TomcatScan.py:145 ZapcoMan/TomcatVulnToolkit/TomcatScan.py:291
GET /test1234.jsp
- Ports
- 8080
- Seen in
- 1 repo: mefulton/cve-2017-12615
- Evidence
- mefulton/cve-2017-12615/tomcatexploit.py:16
GET /{var}
- Query
cmd=- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36- Seen in
- 1 repo: Seif-Naouali/Secu_Dev_2
- Evidence
- Seif-Naouali/Secu_Dev_2/42966.py:55 Seif-Naouali/Secu_Dev_2/42966.py:105
GET /{var}/{var}
- Ports
- 80, 1080, 3128
- Seen in
- 1 repo: ZapcoMan/TomcatVulnToolkit
- Evidence
- ZapcoMan/TomcatVulnToolkit/TomcatScan.py:223
OPTIONS /123
- Ports
- 8080
- Seen in
- 1 repo: wsg00d/cve-2017-12615
- Evidence
- wsg00d/cve-2017-12615/tomcat-cve-2017-12615.py:30
OPTIONS /isoloom-missing.txt
- Ports
- 8080
- Seen in
- 1 repo: CyberCTF/vulhub-tomcat-cve-2017-12615
- Evidence
- CyberCTF/vulhub-tomcat-cve-2017-12615/checks/put-allowed.sh:6
POST /manager/html/upload
- Query
org.apache.catalina.filters.CSRF_NONCE=- Body markers
name="file_field_name"inmultipart/form-data- Ports
- 80, 1080, 3128
- Seen in
- 1 repo: ZapcoMan/TomcatVulnToolkit
- Evidence
- ZapcoMan/TomcatVulnToolkit/TomcatScan.py:216
PUT /1337.jsp/
- Body markers
<%java.io.InputStream in = Runtime.getRuntime().exec(request.getParameter("cmd")).getInputStream();" \- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36- Seen in
- 1 repo: 1337g/CVE-2017-12615
- Evidence
- 1337g/CVE-2017-12615/CVE-2017-12615.py:30
PUT /shell.jsp/
- Body markers
@shell.jspintext/plain- Ports
- 8080
- Seen in
- 1 repo: netw0rk7/CVE-2017-12615-Home-Lab
- Evidence
- netw0rk7/CVE-2017-12615-Home-Lab/README.md:77 netw0rk7/CVE-2017-12615-Home-Lab/README.md:128
PUT /test.jsp/
- Body markers
@-=inapplication/x-www-form-urlencoded- Seen in
- 1 repo: breaktoprotect/CVE-2017-12615
- Evidence
- breaktoprotect/CVE-2017-12615/README.md:40
PUT /{var}/
- Seen in
- 1 repo: edyekomu/CVE-2017-12615-PoC
- Evidence
- edyekomu/CVE-2017-12615-PoC/CVE-2017-12615.py:20
GET /{var}.jsp
- Ports
- 8080
- Seen in
- 1 repo: breaktoprotect/CVE-2017-12615
- Evidence
- breaktoprotect/CVE-2017-12615/README.md:44
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/1\.jsp/(?:[?#].*)?$
(?i)^/[^/?#]*\.jsp/(?:[?#].*)?$
(?i)^/test\.jsp(?:[?#].*)?$
(?i)^/isoloom-missing\.txt(?:[?#].*)?$
(?i)^/manager/html(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2017-12615 Apache Software Foundation Apache Tomcat exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:"/1.jsp/"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; http.request_body; content:"shell="; http.request_body; content:"@-="; http.request_body; content:"1.jsp"; reference:url,poc.griffinguard.io/cve/CVE-2017-12615; classtype:web-application-attack; sid:9082381; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2017-12615 Apache Software Foundation Apache Tomcat exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:".jsp/"; http.header; content:"Accept-Language: zh-cn,zh|3b|q=0.8,en-us|3b|q=0.5,en|3b|q=0.3"; nocase; http.header; content:"Date: Wed, 12 Sep 2020 02:10:09 GMT"; nocase; http.request_body; content:"<% out.write("; http.request_body; content:"JSP upload successfully"; http.request_body; content:"JSP file successfully uploaded via curl"; reference:url,poc.griffinguard.io/cve/CVE-2017-12615; classtype:web-application-attack; sid:9110451; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-12615 Apache Software Foundation Apache Tomcat exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/test.jsp"; reference:url,poc.griffinguard.io/cve/CVE-2017-12615; classtype:web-application-attack; sid:9755014; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2017-12615 Apache Software Foundation Apache Tomcat exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/isoloom-missing.txt"; reference:url,poc.griffinguard.io/cve/CVE-2017-12615; classtype:web-application-attack; sid:9259924; rev:1;)
alert http any any -> $HOME_NET [80,1080,3128] (msg:"GG PoC-Monitor CVE-2017-12615 Apache Software Foundation Apache Tomcat exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/manager/html"; reference:url,poc.griffinguard.io/cve/CVE-2017-12615; classtype:web-application-attack; sid:9612848; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Tomcat exploit attempt (CVE-2017-12615)
id: gg-pocmon-cve-2017-12615-9082381
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-12615. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-12615
logsource:
category: webserver
detection:
selection:
cs-method: PUT
cs-uri-stem|contains|all:
- '/1.jsp/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.12615
title: Apache Software Foundation Apache Tomcat exploit attempt (CVE-2017-12615)
id: gg-pocmon-cve-2017-12615-9110451
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-12615. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-12615
logsource:
category: webserver
detection:
selection:
cs-method: PUT
cs-uri-stem|contains|all:
- '.jsp/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.12615
title: Apache Software Foundation Apache Tomcat exploit attempt (CVE-2017-12615)
id: gg-pocmon-cve-2017-12615-9755014
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-12615. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-12615
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/test.jsp'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.12615
title: Apache Software Foundation Apache Tomcat exploit attempt (CVE-2017-12615)
id: gg-pocmon-cve-2017-12615-9259924
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-12615. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-12615
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/isoloom-missing.txt'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.12615
title: Apache Software Foundation Apache Tomcat exploit attempt (CVE-2017-12615)
id: gg-pocmon-cve-2017-12615-9612848
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-12615. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-12615
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/manager/html'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.12615