CVE-2017-5638
Apache Struts Remote Code Execution Vulnerability
Description
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.
Description as published by the source, in English.
Key facts
- Published
- 2017-03-11
- Last modified
- 2026-06-17
- Assigned by
- security@apache.org
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
100.0 %
among the highest of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Actively exploited
CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2021-11-03, with a remediation deadline of 2022-05-03 for US federal agencies.
Required action: Apply updates per vendor instructions.
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Apache | Struts | ≥ 2.2.3, < 2.3.32 | Affected |
| Apache | Struts | ≥ 2.5.0, < 2.5.10.1 | Affected |
| Arubanetworks | Clearpass Policy Manager | < 6.6.5 | Affected |
| Hp | Server Automation | 10.0.0 | Affected |
| Hp | Server Automation | 10.1.0 | Affected |
| Hp | Server Automation | 10.2.0 | Affected |
| Hp | Server Automation | 10.5.0 | Affected |
| Hp | Server Automation | 9.1.0 | Affected |
| Ibm | Storwize V3500 | all versions listed | Not affected |
| Ibm | Storwize V3500 Firmware | 7.7.1.6 | Affected |
| Ibm | Storwize V3500 Firmware | 7.8.1.0 | Affected |
| Ibm | Storwize V5000 | all versions listed | Not affected |
| Ibm | Storwize V5000 Firmware | 7.7.1.6 | Affected |
| Ibm | Storwize V5000 Firmware | 7.8.1.0 | Affected |
| Ibm | Storwize V7000 | all versions listed | Not affected |
| Ibm | Storwize V7000 Firmware | 7.7.1.6 | Affected |
| Ibm | Storwize V7000 Firmware | 7.8.1.0 | Affected |
| Lenovo | Storage V5030 | all versions listed | Not affected |
| Lenovo | Storage V5030 Firmware | 7.7.1.6 | Affected |
| Lenovo | Storage V5030 Firmware | 7.8.1.0 | Affected |
| Netapp | Oncommand Balance | all versions listed | Affected |
| Oracle | Weblogic Server | 10.3.6.0.0 | Affected |
| Oracle | Weblogic Server | 12.1.3.0.0 | Affected |
| Oracle | Weblogic Server | 12.2.1.1.0 | Affected |
| Oracle | Weblogic Server | 12.2.1.2.0 | Affected |
| org.apache.struts | struts2-core (Maven) | ≥ 2.3.0, < 2.3.32 | Affected |
| org.apache.struts | struts2-core (Maven) | ≥ 2.5.0, < 2.5.10.1 | Affected |
Weakness type
-
CWE-20: Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
-
CWE-755: Improper Handling of Exceptional Conditions
The product does not handle or incorrectly handles an exceptional condition.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1027: Obfuscated Files or Information
- T1036.001: Invalid Code Signature
- T1539: Steal Web Session Cookie
- T1553.002: Code Signing
- T1574.006: Dynamic Linker Hijacking
- T1574.007: Path Interception by PATH Environment Variable
References
- http://blog.talosintelligence.com/2017/03/apache-0-day-exploited.html
- http://blog.trendmicro.com/trendlabs-security-intelligence/cve-2017-5638-apache-struts-vu…
- http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-002.txt
- http://www.eweek.com/security/apache-struts-vulnerability-under-attack.html
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
- http://www.securityfocus.com/bid/96729
- http://www.securitytracker.com/id/1037973
- https://arstechnica.com/security/2017/03/critical-vulnerability-under-massive-attack-impe…
- https://cwiki.apache.org/confluence/display/WW/S2-045
- https://cwiki.apache.org/confluence/display/WW/S2-046
- https://exploit-db.com/exploits/41570
- https://git1-us-west.apache.org/repos/asf?p=struts.git%3Ba%3Dcommit%3Bh%3D352306493971e7d…
- https://git1-us-west.apache.org/repos/asf?p=struts.git%3Ba%3Dcommit%3Bh%3D6b8272ce4716003…
- https://github.com/mazen160/struts-pwn
- https://github.com/rapid7/metasploit-framework/issues/8064
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn0…
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn0…
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf0…
- https://isc.sans.edu/diary/22169
- https://lists.apache.org/thread.html/r1125f3044a0946d1e7e6f125a6170b58d413ebd4a95157e4608…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.