CVE-2017-5638: Apache Struts Remote Code Execution Vulnerability

Published Mar 11, 2017
·
Updated

Apache Struts Jakarta Multipart parser allows for malicious file upload using the Content-Type value, leading to remote code execution.

Other sources

Apache Struts versions prior to 2.3.32 and 2.5.10.1 contain incorrect exception handling and error-message generation during file-upload attempts using the Jakarta Multipart parser, which allows remote attackers to execute arbitrary commands via a crafted Content-Type, Content-Disposition, or Content-Length HTTP header, as exploited in the wild in March 2017 with a Content-Type header containing a #cmd= string.

The Jakarta Multipart parser in Apache Struts 2 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1 has incorrect exception handling and error-message generation during file-upload attempts, which allows remote attackers to execute arbitrary commands via a crafted Content-Type, Content-Disposition, or Content-Length HTTP header, as exploited in the wild in March 2017 with a Content-Type header containing a #cmd= string.

Affected Software

82 affected componentsFixes available
maven/org.apache.struts:struts2-core>=2.5.0<=2.5.10
2.5.10.1
maven/org.apache.struts:struts2-core>=2.3.0<=2.3.31
2.3.32
Apache struts
Apache struts=2.3.5
Apache struts=2.3.6
Apache struts=2.3.7
Apache struts=2.3.8
Apache struts=2.3.9
Apache struts=2.3.10
Apache struts=2.3.11
Apache struts=2.3.12
Apache struts=2.3.13
Apache struts=2.3.14
Apache struts=2.3.14.1
Apache struts=2.3.14.2
Apache struts=2.3.14.3
Apache struts=2.3.15
Apache struts=2.3.15.1
Apache struts=2.3.15.2
Apache struts=2.3.15.3
Apache struts=2.3.16
Apache struts=2.3.16.1
Apache struts=2.3.16.2
Apache struts=2.3.16.3
Apache struts=2.3.17
Apache struts=2.3.19
Apache struts=2.3.20
Apache struts=2.3.20.1
Apache struts=2.3.20.2
Apache struts=2.3.20.3
Apache struts=2.3.21
Apache struts=2.3.22
Apache struts=2.3.23
Apache struts=2.3.24
Apache struts=2.3.24.1
Apache struts=2.3.24.2
Apache struts=2.3.24.3
Apache struts=2.3.25
Apache struts=2.3.26
Apache struts=2.3.27
Apache struts=2.3.28
Apache struts=2.3.28.1
Apache struts=2.3.29
Apache struts=2.3.30
Apache struts=2.3.31
Apache struts=2.5
Apache struts=2.5.1
Apache struts=2.5.2
Apache struts=2.5.3
Apache struts=2.5.4
Apache struts=2.5.5
Apache struts=2.5.6
Apache struts=2.5.7
Apache struts=2.5.8
Apache struts=2.5.9
Apache struts=2.5.10
Apache struts>=2.2.3<2.3.32
Apache struts>=2.5.0<2.5.10.1
All of the following
Any of the following
IBM Storwize V3500 Firmware=7.7.1.6
IBM Storwize V3500 Firmware=7.8.1.0
IBM Storwize V3500
All of the following
Any of the following
IBM Storwize V5000 Firmware=7.7.1.6
IBM Storwize V5000 Firmware=7.8.1.0
IBM Storwize V5000
All of the following
Any of the following
IBM Storwize V7000 Firmware=7.7.1.6
IBM Storwize V7000 Firmware=7.8.1.0
IBM Storwize V7000
All of the following
Any of the following
Lenovo Storage V5030 Firmware=7.7.1.6
Lenovo Storage V5030 Firmware=7.8.1.0
Lenovo Storage V5030
HP Server Automation=9.1.0
HP Server Automation=10.0.0
HP Server Automation=10.1.0
HP Server Automation=10.2.0
HP Server Automation=10.5.0
Oracle WebLogic Server=10.3.6.0.0
Oracle WebLogic Server=12.1.3.0.0
Oracle WebLogic Server=12.2.1.1.0
Oracle WebLogic Server=12.2.1.2.0
Arubanetworks Clearpass Policy Manager<6.6.5
NetApp OnCommand Balance
Apache Struts 2=CVE-2017-5638

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.struts:struts2-core to a version that resolves this vulnerability.

    Fixed in 2.5.10.1
  2. Upgrade

    Upgrade maven/org.apache.struts:struts2-core to a version that resolves this vulnerability.

    Fixed in 2.3.32
  3. Upgrade

    Upgrade Apache Struts 2 to a version that resolves this vulnerability.

    Fixed in 2.3.32
  4. Upgrade

    Upgrade Apache Struts 2 to a version that resolves this vulnerability.

    Fixed in 2.5.10.1

Event History

Mar 11, 2017
CVE Published
via MITRE·02:11 AM
Data Sourced
via MITRE·02:11 AM
Description
Data Sourced
via NVD·02:59 AM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 18, 2018
Advisory Published
via GitHub·07:24 PM
Nov 3, 2021
Known Exploited
via CISA·12:00 AM
Known Ransomware
via CISA·12:00 AM
Dec 14, 2023
News Published
10:15 PM
Dec 15, 2023
News Published
02:28 PM
Dec 12, 2024
News Published
via The Register·01:31 PM
News Published
via The Register·01:35 PM
Mar 1, 58274
Event
via NVD·04:43 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2017-5638?

CVE-2017-5638 is classified as a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2017-5638?

To remediate CVE-2017-5638, upgrade to Apache Struts version 2.3.32 or 2.5.10.1 or later.

3

What versions of Apache Struts are affected by CVE-2017-5638?

CVE-2017-5638 affects Apache Struts versions prior to 2.3.32 and 2.5.10.1.

4

What type of threat does CVE-2017-5638 pose?

CVE-2017-5638 poses a threat of remote code execution through malicious file uploads.

5

Are there any specific software products that utilize the vulnerable Struts versions in CVE-2017-5638?

Various products like IBM Storwize and HP Server Automation may utilize affected versions of Apache Struts related to CVE-2017-5638.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203