CVE-2017-5638: Apache Struts 2 Jakarta Multipart Parser Remote Code Execution
- Vendors
- Aruba NetworksNetAppOracle CorporationHewlett Packard EnterpriseLenovoInternational Business MachinesApache Software Foundation
CVE-2017-5638 is an unauthenticated remote code execution vulnerability in the Jakarta Multipart parser of Apache Struts 2, affecting 2.3.x releases before 2.3.32 and 2.5.x releases before 2.5.10.1. Incorrect exception handling and error-message generation during multipart file-upload processing cause attacker-controlled OGNL expressions to be evaluated. Crafted Content-Type, Content-Disposition, or Content-Length HTTP headers can trigger arbitrary operating-system command execution. Exploitation was observed in the wild in March 2017, and the vulnerability was used in the Equifax breach.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises application confidentiality, integrity, and availability by allowing arbitrary commands to execute with the application process's privileges. Attackers can access or modify application data, install backdoors, deploy ransomware or cryptocurrency miners, and use the compromised server for further intrusion activity. Observed exploitation has supported large-scale data theft, botnet enrollment, and ransomware delivery. Broader host and network compromise depends on the application's privileges and accessible resources.
Mitigation
If you can’t patch tonight, do this now.
While patching is pending, apply validated WAF or intrusion-prevention rules that inspect HTTP headers for malicious OGNL expressions and malformed multipart requests. Inspection limited to request bodies is insufficient. Restrict network access to vulnerable applications where feasible. Monitor suspicious header patterns and unexpected application-spawned processes; these controls complement, but do not replace, upgrading.
Remediation
Patch, then assume compromise.
Upgrade affected Apache Struts installations to at least version 2.3.32 in the 2.3.x branch or 2.5.10.1 in the 2.5.x branch. Identify and update vulnerable Struts dependencies embedded in deployed applications and third-party products, then verify that the running deployments use the corrected versions.
Exploits
28 exploits validated by Mallory's analysis. Hidden: 13 rejected by Mallory's analysis as not a working exploit; 3 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2017-5638 exploited in the wild?
- Yes. As of Nov 28, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2017-5638?
- Yes. Mallory tracks 28 public exploits or proofs of concept for CVE-2017-5638, the earliest disclosed Mar 7, 2017.
- Is there a patch for CVE-2017-5638?
- Upgrade affected Apache Struts installations to at least version 2.3.32 in the 2.3.x branch or 2.5.10.1 in the 2.5.x branch. Identify and update vulnerable Struts dependencies embedded in deployed applications and third-party products, then verify that the running deployments use the corrected versions.
- What products are affected by CVE-2017-5638?
- Apache Software Foundation Struts, Aruba Networks Clearpass Policy Manager, NetApp Oncommand Balance, Oracle Corporation Oracle Weblogic Server, Hewlett Packard Enterprise Server Automation, and 4 more.
- How severe is CVE-2017-5638?
- CVE-2017-5638 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 28, 2026.
Recent activity
55 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.