cbcvebase.
CVE-2017-12617
published 2017-10-04

CVE-2017-12617: 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…

PriorityP193high8.1CVSS 3.1
AVNACHPRNUINSUCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2022-04-15
Exploited in the wild
EPSS
99.99%
100.0th percentile
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.

Affected

155 ranges· showing 25
VendorProductVersion rangeFixed in
apachetomcat
apachetomcat>= 7.0.0 < 7.0.827.0.82
apachetomcat>= 8.0 < 8.0.478.0.47
apachetomcat>= 8.5.0 < 8.5.238.5.23
apachetomcat>= 9.0.0 < 9.0.19.0.1
apache_software_foundationapache_tomcat
apache_software_foundationapache_tomcat
apache_software_foundationapache_tomcat
apache_software_foundationapache_tomcat
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debiandebian_linux
netappactive_iq_unified_manager>= 7.3
netappactive_iq_unified_manager>= 9.5
oracleagile_plm
oracleagile_plm
oracleagile_plm
oracleagile_plm
oraclecommunications_instant_messaging_server
oracleendeca_information_discovery_integrator
oracleendeca_information_discovery_integrator
oracleenterprise_manager_for_mysql_database
oraclefinancial_services_analytical_applications_infrastructure7.3.3.0.0 – 7.3.5.3.0

Detection & IOCsextracted from sources · hover to see the quote

commandPUT /<filename>.jsp/ HTTP/1.1
port8080
  • Detect HTTP PUT requests targeting paths ending with '.jsp/' (trailing slash bypass) — the exploit uploads a JSP webshell via PUT to a path like /<name>.jsp/ and then executes it via GET to /<name>.jsp
  • Alert on HTTP PUT requests with a URI ending in '.jsp/' (trailing slash) followed by a GET to the same path without the trailing slash — this two-step pattern is the canonical exploit sequence for CVE-2017-12617
  • A successful upload returns HTTP 201; monitor for HTTP 201 responses to PUT requests targeting JSP paths on Tomcat servers
  • Shodan/FOFA queries can identify exposed Tomcat instances: search for html:"Apache Tomcat", http.title:"apache tomcat", or body="apache tomcat"
  • ·Vulnerability only exists when HTTP PUT is enabled by setting the 'readonly' initialisation parameter of the Default servlet to false — the default configuration is NOT vulnerable
  • ·Red Hat notes the default Tomcat context is readonly and therefore not affected; only explicitly misconfigured contexts with readonly=false are vulnerable
  • ·Mitigation (short of patching) is to ensure readonly=true for DefaultServlet/WebDAV servlet and to block HTTP methods that permit resource modification for untrusted users

CVSS provenance

nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.1HIGH
vulncheck8.1HIGH
cisa8.1HIGH
vendor_apache8.1HIGH
vendor_redhat8.1HIGH
vendor_ubuntu7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.