CVE-2017-5638: Apache Struts Remote Code Execution Vulnerability
CVE-2017-5638 is a critical-severity flaw (CVSS 9.8) affecting struts, storwize v3500 firmware, storwize v5000 firmware, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Used in ransomware campaigns
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 100.0% (top 1%) |
| CISA exploited list | Yes, fix due 2022-05-03, used in ransomware |
| Weakness | CWE-755 |
| Published | 2017-03-11 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: mazen160/struts-pwn (443 stars)
- GitHub PoC: Flyteas/Struts2-045-Exp (61 stars)
- GitHub PoC: immunio/apache-struts2-CVE-2017-5638 (34 stars)
- Write-up: exploit-db.com/exploits/41570
- Exploit-DB: Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - 'Content-Type' Remote Code Execution (RCE)
- Exploit-DB: Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 - 'Jakarta' Multipart Parser OGNL Injection (Metasploit)
- Metasploit: Apache Struts Jakarta Multipart Parser OGNL Injection
- Nuclei scan template: Apache Struts 2 - Remote Command Execution
Advisories and coverage
Research and news
- Vulners Bulletins: CVE-2017-5638 2026-10-31
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2017-5638?
struts: upgrade to 2.3.32, 2.5.10.1; storwize v3500 firmware: mitigate or apply the listed mitigation; storwize v5000 firmware: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2017-5638 being exploited?
Yes. CVE-2017-5638 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2017-5638 affect?
CVE-2017-5638 affects struts, storwize v3500 firmware, storwize v5000 firmware. Severity is critical (CVSS 9.8). 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 comm
How urgent is CVE-2017-5638?
Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Used in ransomware campaigns; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Apache Struts vulnerabilities · Lenovo vulnerabilities
Related CVEs
- CVE-2024-53677 CRITICAL 9.8 UPGRADE File upload logic in Apache Struts is flawed. An attacker can manipulate file upload params to enable paths tr
- CVE-2016-1182 HIGH 8.2 DOWNGRADE ActionServlet.java in Apache Struts 1 1.x through 1.3.10 does not properly restrict the Validator configuratio
- CVE-2016-1181 HIGH 8.1 DOWNGRADE DOWNGRADE ActionServlet.java in Apache Struts 1 1.x through 1.3.10 mishandles multithreaded access to an ActionForm inst
- CVE-2025-66675 HIGH 8.2 UPGRADE Denial of Service vulnerability in Apache Struts, file leak in multipart request processing causes disk exhaus
- CVE-2014-0114 HIGH 7.5 UPGRADE DOWNGRADE Apache Commons BeanUtils, as distributed in lib/commons-beanutils-1.8.0.jar in Apache Struts 1.x through 1.3.1