patchminder
Exploited in the wild · CISA KEV Used by ransomware CVE-2017-5638

Remote code executionin Apache Struts.

Published 11 Mar 2017 · Updated 21 Oct 2025 · Every fact sourced

JSONCite
Is it exploited?
Yes

On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 3 Nov 2021. Ransomware groups use it too.

On CISA's listKnown ransomware useAttack code is public
Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 100.0% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 2.3.32, 2.5.10.1
In plain words

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.

CISA: Apache Struts Jakarta Multipart parser allows for malicious file upload using the Content-Type value, leading to remote code execution.

What to do now
  • Upgrade org.apache.struts:struts2-core (Maven) to 2.3.32, 2.5.10.1 or later, whichever matches your release line.
  • CISA requires US federal agencies to fix it by 3 May 2022.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache Struts
Not confirmed
Not confirmed
CVE record
org.apache.struts:struts2-core (Maven)
2.3.0 to before 2.3.32
2.3.32
GitHub advisory
org.apache.struts:struts2-core (Maven)
2.5.0 to before 2.5.10.1
2.5.10.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 29 Jan 2017
    CVE ID reserved by apache.
  2. 7 Mar 2017
    First public proof of concept on GitHub.
  3. 7 Mar 2017
    Metasploit module: Apache Struts Jakarta Multipart Parser OGNL Injection.
  4. 11 Mar 2017
    Published in the CVE List.
  5. 3 Nov 2021
    Added to CISA's Known Exploited Vulnerabilities list.
  6. 3 Nov 2021
    CISA lists known use in ransomware campaigns.
  7. 21 Oct 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
2 entries
GitHub proof of concepts
88 repositories
1 flagged suspicious
Exploit-DBEDB-ID 41570web application exploit for jsp, published 7 Mar 2017, verified by Exploit-DB
Exploit-DBEDB-ID 41614remote exploit for multiple, published 15 Mar 2017, verified by Exploit-DB
GitHubno warning signs foundmazen160/struts-pwn445 stars · created 12 Mar 2017An exploit for Apache Struts CVE-2017-5638
GitHubno warning signs foundFlyteas/Struts2-045-Exp61 stars · created 7 Mar 2017Struts2 S2-045(CVE-2017-5638)Exp with GUI
GitHubno warning signs foundimmunio/apache-struts2-CVE-2017-563834 stars · created 10 Mar 2017Demo Application and Exploit
GitHubno warning signs foundjas502n/S2-045-EXP-POC-TOOLS25 stars · created 9 Mar 2017S2-045 漏洞 POC-TOOLS CVE-2017-5638
GitHubno warning signs foundPolarisLab/S2-04523 stars · created 7 Mar 2017Struts2 S2-045(CVE-2017-5638)Vulnerability environment · http://www.mottoin.com/97954.html
GitHubno warning signs foundxsscx/cve-2017-563822 stars · created 10 Mar 2017Example PoC Code for CVE-2017-5638 | Apache Struts Exploit
GitHubno warning signs foundjas502n/st2-046-poc21 stars · created 21 Mar 2017st2-046-poc CVE-2017-5638
GitHubno warning signs foundret2jazzy/Struts-Apache-ExploitPack16 stars · created 12 Mar 2017These are just some script which you can use to detect and exploit the Apache Struts Vulnerability (CVE-2017-5638)
GitHubno warning signs foundwin3zz/CVE-2017-563816 stars · created 13 May 2018Apache Struts 2.3.5 < 2.3.31 / 2.5 < 2.5.10 · Remote Code Execution · Shell Script
GitHubno warning signs foundjrrdev/cve-2017-563814 stars · created 15 Mar 2017cve-2017-5638 Vulnerable site sample
GitHubsuspicious, do not runbtamburi/strutszeiroNo link: this repository shows warning signs. Do not run it.Why: mentions payment or private contact
Referenceexploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Struts vulnerabilities

Same weakness: Improper handling of exceptional conditions

All CWE-755 vulnerabilities

References
Cite this page

Patchminder. CVE-2017-5638: Remote code execution in Apache Struts. https://patchminder.com/cve/cve-2017-5638/ (accessed 5 December 2026).