CVE-2017-5638
Apache Struts Remote Code Execution Vulnerability
- Actively exploited
- Used by ransomware
- Critical · 9.8 of 10
- Exploited since
- 3 Nov 2021 added to the CISA list
- Chance of attacks
- over 99.9% in the next 30 days (FIRST EPSS)
- Fix deadline
- 3 May 2022 for US federal agencies
- Published
- 11 Mar 2017 in the NVD
What this means
Apache Struts Jakarta Multipart parser allows for malicious file upload using the Content-Type value, leading to remote code execution.
CISA
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.
NIST National Vulnerability Database
What to do
Apply updates per vendor instructions.
CISA's required action. If you use the product, install the vendor's update as soon as possible.
Affected
- Apache Software Foundation Apache Struts
Official sources
- nvd.nist.gov/vuln/detail/CVE-2017-5638
- cwiki.apache.org/confluence/display/WW/S2-045 vendor advisory
- cwiki.apache.org/confluence/display/WW/S2-046 vendor advisory
- blog.talosintelligence.com/2017/03/apache-0-day-exploited.html
- blog.trendmicro.com/trendlabs-security-intelligence/cve-2017-5638-apache-struts-vulnerabil...
- arubanetworks.com/assets/alert/ARUBA-PSA-2017-002.txt
- eweek.com/security/apache-struts-vulnerability-under-attack.html
- oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
- securityfocus.com/bid/96729
Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.