Arbitrary file upload in Apache Tomcat

CVE-2017-12615

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.

Vulnerability class: Unrestricted File Upload

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.997, 100.0th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

CISA KEV (Known Exploited Vulnerabilities)

This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.

BOD 22-01 due date: .

Required action: Apply updates per vendor instructions.

Known ransomware campaign use: yes.

Browse the full CISA KEV catalog with PoC counts, Metasploit modules and EPSS.

Public exploits and proof-of-concept code

21 public repositories with exploit or proof-of-concept code for this CVE:

  • lizhianyuguangming/TomcatScanPro (300 stars, last pushed 2026-06-16): tomcat自动化漏洞扫描利用工具,支持批量弱口令检测、后台部署war包getshell、CVE-2017-12615 文件上传、CVE-2020-1938/CNVD-2020-10487 文件包含
  • tpt11fb/AttackTomcat (259 stars, last pushed 2022-11-15): Tomcat常见漏洞GUI利用工具。CVE-2017-12615 PUT文件上传漏洞、tomcat-pass-getshell 弱认证部署war包、弱口令爆破、CVE-2020-1938 Tomcat AJP文件读取/包含
  • breaktoprotect/CVE-2017-12615 (112 stars, last pushed 2022-10-09): POC Exploit for Apache Tomcat 7.0.x CVE-2017-12615 PUT JSP vulnerability.
  • xiaokp7/Tomcat_PUT_GUI_EXP (11 stars, last pushed 2023-03-14): Tomcat PUT方法任意文件写入(CVE-2017-12615)exp
  • mefulton/cve-2017-12615 (10 stars, last pushed 2017-10-01): just a python script for cve-2017-12615
  • zi0Black/POC-CVE-2017-12615-or-CVE-2017-12717 (6 stars, last pushed 2017-10-10): CVE-2017-12617 and CVE-2017-12615 for tomcat server
  • 1337g/CVE-2017-12615 (4 stars, last pushed 2017-12-26): CVE-2017-12615 Tomcat RCE (TESTED)
  • wsg00d/cve-2017-12615 (3 stars, last pushed 2017-11-01): tomcat-put-cve-2017-12615
  • w0x68y/CVE-2017-12615-EXP (1 star, last pushed 2021-01-13): CVE-2017-12615 任意文件写入exp,写入webshell
  • ianxtianxt/CVE-2017-12615 (1 star, last pushed 2020-01-20): CVE-2017-12615 批量脚本

11 more are listed on the interactive page.

Also mentioned in 123 other repositories (0day404/vulnerability-poc, 0day666/Vulnerability-verification, 0ps/pocassistdb, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References