Actively exploited · Published Sep 19, 2017 · Assigned by apache
CVE-2017-12615
High 8.1 Exploited Ransomware
In plain English
A high-severity unrestricted file upload in Apache Tomcat from Apache Software Foundation. Attackers are actively exploiting it in the wild (listed by CISA on March 25, 2022). It has been used in ransomware campaigns. The chance it is exploited in the next 30 days is estimated at 99.7% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply updates per vendor instructions.
Federal agencies must remediate by Apr 15, 2022.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.apache.tomcat.embed:tomcat-embed-core | 7.0.79 | GHSA-pjfr-qf3p-3q25 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Tomcat | 7.0.0 to 7.0.79 |
Weakness: CWE-434 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- RHSA-2017:3113 vendor-advisory, x_refsource_REDHAT
- RHSA-2017:3080 vendor-advisory, x_refsource_REDHAT
- 1039392 vdb-entry, x_refsource_SECTRACK
- [announce] 20170919 [SECURITY] CVE-2017-12615 Apache Tomcat Remote Code Execution via JSP upload mailing-list, x_refsource_MLIST
- https://www.synology.com/support/security/Synology_SA_17_54_Tomcat x_refsource_CONFIRM
- RHSA-2018:0465 vendor-advisory, x_refsource_REDHAT
- http://breaktoprotect.blogspot.com/2017/09/the-case-of-cve-2017-12615-tomcat-7-put.html x_refsource_MISC
- RHSA-2017:3114 vendor-advisory, x_refsource_REDHAT
- 100901 vdb-entry, x_refsource_BID
- RHSA-2018:0466 vendor-advisory, x_refsource_REDHAT
- 42953 exploit, x_refsource_EXPLOIT-DB
- https://security.netapp.com/advisory/ntap-20171018-0001/ x_refsource_CONFIRM
- https://github.com/breaktoprotect/CVE-2017-12615 x_refsource_MISC
- RHSA-2017:3081 vendor-advisory, x_refsource_REDHAT
- [tomcat-dev] 20190325 svn commit: r1856174 [22/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/ mailing-list, x_refsource_MLIST
- [tomcat-dev] 20190413 svn commit: r1857494 [16/20] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list, x_refsource_MLIST
- [tomcat-dev] 20190415 svn commit: r1857582 [17/22] - in /tomcat/site/trunk: docs/ xdocs/stylesheets/ mailing-list, x_refsource_MLIST
- [announce] 20200131 Apache Software Foundation Security Report: 2019 mailing-list, x_refsource_MLIST
- [tomcat-dev] 20200213 svn commit: r1873980 [27/34] - /tomcat/site/trunk/docs/ mailing-list, x_refsource_MLIST
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-12615 government-resource