CVE-2017-5638Apache Struts
Remote Code Execution in Apache Struts via Improper Exception Handling
Critical 9.8 KEVRansomware No auth neededHigh EPSS
Follow: this CVE · Apache · Apache Struts We alert you by email or Slack (account required).
- Priority
- 99
- CVSS 3.1
- 9.8
- EPSS
- 100.0% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- In KEV since
- Nov 3, 2021
- CISA deadline
- May 3, 2022
- Ransomware use
- Confirmed
- Published
- Mar 11, 2017
- Updated
- Jun 17, 2026
- Category
- Server · Cross-platform
- Weakness (CWE)
- CWE-755
- SSVC (CISA)
- Exploitation: active · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
The Jakarta Multipart parser in Apache Struts 2 (versions 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1) has improper exception handling during file upload attempts. An unauthenticated remote attacker can execute arbitrary commands via a crafted HTTP Content-Type, Content-Disposition, or Content-Length header. CISA confirmed this vulnerability as actively exploited in the wild since March 2017.
Show the original NVD text
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.
Exploitation confirmed by CISA
Apache Struts Jakarta Multipart parser allows for malicious file upload using the Content-Type value, leading to remote code execution.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available · fixed versions: 2.3.32, 2.5.10.1
Update Apache Struts to version 2.3.32 or later (2.3 branch) or 2.5.10.1 or later (2.5 branch). Review vendor mitigations if immediate patching is not possible.
- Apply the vendor's security update for Struts.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was May 3, 2022.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.apache.struts:struts2-core |
≥ 2.3.0 < 2.3.32 |
2.3.32 |
— |
| Maven | org.apache.struts:struts2-core |
≥ 2.5.0 < 2.5.10.1 |
2.5.10.1 |
— |
Per OSV / GitHub Advisories (GHSA-j77q-2qqg-6989). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | struts | ≥ 2.2.3 < 2.3.32 |
| apache | struts | ≥ 2.5.0 < 2.5.10.1 |
| ibm | storwize_v3500_firmware | 7.7.1.6 |
| ibm | storwize_v3500_firmware | 7.8.1.0 |
| ibm | storwize_v5000_firmware | 7.7.1.6 |
| ibm | storwize_v5000_firmware | 7.8.1.0 |
| ibm | storwize_v7000_firmware | 7.7.1.6 |
| ibm | storwize_v7000_firmware | 7.8.1.0 |
| lenovo | storage_v5030_firmware | 7.7.1.6 |
| lenovo | storage_v5030_firmware | 7.8.1.0 |
| hp | server_automation | 9.1.0 |
| hp | server_automation | 10.0.0 |
| hp | server_automation | 10.1.0 |
| hp | server_automation | 10.2.0 |
| hp | server_automation | 10.5.0 |
| oracle | weblogic_server | 10.3.6.0.0 |
| oracle | weblogic_server | 12.1.3.0.0 |
| oracle | weblogic_server | 12.2.1.1.0 |
| oracle | weblogic_server | 12.2.1.2.0 |
| arubanetworks | clearpass_policy_manager | < 6.6.5 |
| netapp | oncommand_balance | all |
Official sources
References
Links published by the sources. Open them with care.
- blog.talosintelligence.com Exploit Third Party Advisory
- blog.trendmicro.com Exploit Third Party Advisory
- www.arubanetworks.com Third Party Advisory
- www.eweek.com Press/Media Coverage Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.securityfocus.com Broken Link Third Party Advisory VDB Entry
- www.securitytracker.com Broken Link Third Party Advisory VDB Entry
- arstechnica.com Exploit Press/Media Coverage
- cwiki.apache.org Mitigation Vendor Advisory
- cwiki.apache.org Mitigation Vendor Advisory
- exploit-db.com Exploit Third Party Advisory VDB Entry
- git1-us-west.apache.org Broken Link
- git1-us-west.apache.org Broken Link
- github.com Exploit
- github.com Exploit Issue Tracking
- h20566.www2.hpe.com Broken Link
- h20566.www2.hpe.com Third Party Advisory
- h20566.www2.hpe.com Third Party Advisory
- isc.sans.edu Exploit Third Party Advisory
- lists.apache.org Mailing List
- lists.apache.org Mailing List
- lists.apache.org Mailing List
- nmap.org Exploit Third Party Advisory
- packetstormsecurity.com Broken Link Exploit Third Party Advisory
- security.netapp.com Third Party Advisory
- struts.apache.org Mitigation Vendor Advisory
- struts.apache.org Mitigation Vendor Advisory
- support.lenovo.com Third Party Advisory
- twitter.com Broken Link Third Party Advisory
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.imperva.com Third Party Advisory
- www.kb.cert.org Third Party Advisory US Government Resource
- www.symantec.com Broken Link
- www.cisa.gov US Government Resource