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 used by Apache Struts 2. It affects Struts 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1. Incorrect exception handling and error-message generation during multipart file-upload processing allow attacker-controlled HTTP header values to be evaluated as OGNL expressions. Crafted Content-Type, Content-Disposition, or Content-Length headers can consequently trigger arbitrary operating-system command execution. Exploitation was observed in the wild in March 2017.
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 the affected application's confidentiality, integrity, and availability through arbitrary command execution with the permissions of the application-server process. Attackers can access or modify accessible data, install malware, and disrupt services. Observed exploitation has supported backdoor installation, DDoS bot enrollment, cryptocurrency mining, ransomware deployment, and initial access for subsequent intrusions. The vulnerability was exploited in the Equifax breach.
Mitigation
If you can’t patch tonight, do this now.
Where immediate upgrading is infeasible, use intrusion-prevention coverage for exploitation attempts, including Snort signatures 41818 and 41819, and apply the applicable workaround documented in Apache advisories S2-045 and S2-046. Restrict network access to affected applications or temporarily remove them from exposure where operationally feasible. Detection and filtering are temporary controls, not substitutes for upgrading.
Remediation
Patch, then assume compromise.
Upgrade affected Apache Struts deployments to a supported, patched release. The historical minimum fixed versions are 2.3.32 for the 2.3.x branch and 2.5.10.1 for the 2.5.x branch. Inventory applications and third-party products embedding Struts, update their affected dependencies, and verify the deployed versions. Patching does not remove an existing compromise; investigate systems that were exposed while vulnerable.
Exploits
28 exploits validated by Mallory's analysis. Hidden: 12 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 Oct 19, 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 deployments to a supported, patched release. The historical minimum fixed versions are 2.3.32 for the 2.3.x branch and 2.5.10.1 for the 2.5.x branch.
- 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 Oct 19, 2026.
Recent activity
50 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.