CVE-2017-5638: Apache Struts Remote Code Execution Vulnerability
Vulnerability summary
CVE-2017-5638 is a high (CVSS 10.0) vulnerability in Apache Struts. It is known to be exploited: CISA lists it, first on 03-11-2021. It has been used in ransomware campaigns. EPSS estimates a 100.00% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 11 public exploits are recorded.
Timeline
- 11-03-2017PublishedVulnerability first disclosed.
- 03-11-2021Added to CISA KEVApache Struts Remote Code Execution Vulnerability
- 03-05-2022CISA remediation dueApply updates per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 3 versions- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
100.00%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 100.00% on 18-09-2026
Known exploited
Compare KEV catalogs- Added
- 03-11-2021
- Federal due date
- 03-05-2022
CISA required action
Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2017-5638
Public exploits
11 foundMetasploit Framework
Maturity: poc
Struts Pwn
Maturity: poc
Exploit Reference (nmap.org)
Maturity: unknown
Show all 11 exploits
Exploit Reference (arstechnica.com)
Maturity: unknown
Exploit Reference (blog.talosintelligence.com)
Maturity: unknown
Exploit Reference (isc.sans.edu)
Maturity: unknown
Exploit Reference (packetstormsecurity.com)
Maturity: unknown
Exploit Reference (blog.trendmicro.com)
Maturity: unknown
Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - Remote Code Execution
Maturity: poc
Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - 'Jakarta' Multipart Parser OGNL Injection (Metasploit)
Maturity: weaponized
Apache Struts Jakarta Multipart Parser OGNL Injection
exploit/multi/http/struts2_content_type_ognl
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Ibm3 products
- storwize_v3500_firmware7.7.1.6 | 7.8.1.0
- storwize_v5000_firmware7.7.1.6 | 7.8.1.0
- storwize_v7000_firmware7.7.1.6 | 7.8.1.0
Apache1 product
- struts≥ 2.2.3, < 2.3.32 | ≥ 2.5.0, < 2.5.10.1
Apache software foundation1 product
- apache struts2.3.x before 2.3.32 | 2.5.x before 2.5.10.1
Arubanetworks1 product
- clearpass_policy_manager< 6.6.5
Hp1 product
- server_automation9.1.0 | 10.0.0 | 10.1.0 | 10.2.0 | 10.5.0
Lenovo1 product
- storage_v5030_firmware7.7.1.6 | 7.8.1.0
Netapp1 product
Oracle1 product
- weblogic_server10.3.6.0.0 | 12.1.3.0.0 | 12.2.1.1.0 | 12.2.1.2.0
Org.apache.struts1 product
- struts2-core≥ 2.3.0, < 2.3.32 | ≥ 2.5.0, < 2.5.10.1
9 vendors · 11 products
References
51 links- blog.talosintelligence.com/2017/03/apache-0-day-exploited.htmlX Refsource MISCExploitThird Party AdvisoryWEB
- h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03733en_usX Refsource CONFIRMBroken LinkWEB
Show all 51 references
- www.eweek.com/security/apache-struts-vulnerability-under-attack.htmlX Refsource MISCPress/Media CoverageThird Party AdvisoryWEB
- packetstormsecurity.com/files/141494/S2-45-poc.py.txtX Refsource MISCBroken LinkExploitThird Party AdvisoryVDB EntryWEB
- www.symantec.com/security-center/network-protection-security-advisories/SA145X Refsource CONFIRMBroken LinkWEB
- h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03723en_usX Refsource CONFIRMThird Party AdvisoryWEB
- www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.htmlX Refsource CONFIRMPatchThird Party AdvisoryWEB
- h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03749en_usX Refsource CONFIRMThird Party AdvisoryWEB
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-5638Government ResourceUS Government ResourceWEB
- github.com/apache/strutsPACKAGE