PT-2017-4238 · Apache+5 · Apache Tomcat+5

Peewpw

·

Published

2017-10-01

·

Updated

2025-10-29

·

CVE-2017-12617

CVSS v2.0

9.3

High

VectorAV:N/AC:M/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Apache Tomcat versions 7.0.0 through 7.0.81 Apache Tomcat versions 8.0.0.RC1 through 8.0.46 Apache Tomcat versions 8.5.0 through 8.5.22 Apache Tomcat versions 9.0.0.M1 through 9.0.0
Description The issue is related to the lack of restrictions on file uploads in Apache Tomcat, allowing a remote attacker to execute arbitrary code by uploading a specially crafted JSP file via HTTP PUT requests when the readonly initialisation parameter of the Default servlet is set to false. This enables the attacker to upload a JSP file to the server, which can then be requested, executing any code it contains.
Recommendations For Apache Tomcat versions 7.0.0 through 7.0.81, update the configuration to restrict HTTP PUT requests or set the readonly initialisation parameter of the Default servlet to true. For Apache Tomcat versions 8.0.0.RC1 through 8.0.46, update the configuration to restrict HTTP PUT requests or set the readonly initialisation parameter of the Default servlet to true. For Apache Tomcat versions 8.5.0 through 8.5.22, update the configuration to restrict HTTP PUT requests or set the readonly initialisation parameter of the Default servlet to true. For Apache Tomcat versions 9.0.0.M1 through 9.0.0, update the configuration to restrict HTTP PUT requests or set the readonly initialisation parameter of the Default servlet to true. As a temporary workaround, consider disabling the Default servlet until a patch is available. Restrict access to the HTTP PUT requests to minimize the risk of exploitation.

Exploit

Fix

Unrestricted File Upload

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
ALT-PU-2017-2666
BDU:2023-01045
CESA-2017_3080
CESA-2017_3081
CVE-2017-12617
DLA-1166-1
ELSA-2017-3080
ELSA-2017-3081
GHSA-XJGH-84HX-56C5
MGASA-2017-0400
OPENSUSE-SU-2017_3069-1
OPENSUSE-SU-2024:11468-1
OPENSUSE-SU-2024:13441-1
RHSA-2017:3080
RHSA-2017:3081
RHSA-2017:3113
RHSA-2017_3080
RHSA-2017_3081
RHSA-2018:0268
RHSA-2018:0270
RHSA-2018:0271
RHSA-2018:0275
RHSA-2018:0466
SUSE-SU-2017:3039-1
SUSE-SU-2017:3059-1
SUSE-SU-2017:3279-1
SUSE-SU-2017_3039-1
SUSE-SU-2017_3279-1
SUSE-SU-2021:14705-1
SUSE-SU-2021_14705-1
USN-3665-1
USN-7282-1

Affected Products

Alt Linux
Apache Tomcat
Centos
Red Hat
Suse
Ubuntu