CVE-2017-5638
Description
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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
99.999%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2021-11-03 · known ransomware use
Public exploit code
Yes
Exploit references (NVD and CNA): 10
Metasploit modules: 1
Nuclei templates: 1
Exploit-DB: 2
Weakness
- CWE-755: Improper Handling of Exceptional Conditions
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Apache Struts Remote Code Execution Vulnerability |
|---|---|
| Vendor / product | Apache / Struts |
| Date added | 2021-11-03 |
| Federal remediation due date | 2022-05-03 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Known |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-02-06 |
Timeline
- 2017-03-07First Exploit-DB entry (EDB-ID 41570)4 days before publication
- 2017-03-11Published by the CNA02:11 UTC
- 2018-10-18GitHub advisory published (GHSA-j77q-2qqg-6989)586 days after publication
- 2021-11-03Added to the CISA KEV catalog1698 days after publication
- 2025-02-06CISA SSVC decision recorded2889 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 41614 | remote | multiple | 2017-03-15 | yes |
| EDB-ID 41570 | webapps | linux | 2017-03-07 | yes |
Nuclei templates:
- CVE-2017-5638: Apache Struts 2 - Remote Command Execution
GitHub advisory GHSA-j77q-2qqg-6989, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.apache.struts:struts2-core | from 2.3.0 before 2.3.32 | 2.3.32 |
| Maven org.apache.struts:struts2-core | from 2.5.0 before 2.5.10.1 | 2.5.10.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache struts | from 2.2.3 before 2.3.32fixed in 2.3.32from 2.5.0 before 2.5.10.1fixed in 2.5.10.1 | 2.3.322.5.10.1 |
| arubanetworks clearpass_policy_manager | before 6.6.5fixed in 6.6.5 | 6.6.5 |
| hp server_automation | 10.0.0no fix listed10.1.0no fix listed10.2.0no fix listed10.5.0no fix listed9.1.0no fix listed | not listednot listednot listednot listednot listed |
| ibm storwize_v3500_firmware | 7.7.1.6no fix listed7.8.1.0no fix listed | not listednot listed |
| ibm storwize_v5000_firmware | 7.7.1.6no fix listed7.8.1.0no fix listed | not listednot listed |
| ibm storwize_v7000_firmware | 7.7.1.6no fix listed7.8.1.0no fix listed | not listednot listed |
| lenovo storage_v5030_firmware | 7.7.1.6no fix listed7.8.1.0no fix listed | not listednot listed |
| netapp oncommand_balance | ||
| oracle weblogic_server | 10.3.6.0.0no fix listed12.1.3.0.0no fix listed12.2.1.1.0no fix listed12.2.1.2.0no fix listed | not listednot listednot listednot listed |
References
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
- https://cwiki.apache.org/confluence/display/WW/S2-045
- https://cwiki.apache.org/confluence/display/WW/S2-046
- https://struts.apache.org/docs/s2-045.html
- https://struts.apache.org/docs/s2-046.html
- http://blog.talosintelligence.com/2017/03/apache-0-day-exploited.html
- http://blog.trendmicro.com/trendlabs-security-intelligence/cve-2017-5638-apache-struts-vulnerability-remote-code-execution/
- https://arstechnica.com/security/2017/03/critical-vulnerability-under-massive-attack-imperils-high-impact-sites/
- https://exploit-db.com/exploits/41570
- https://github.com/mazen160/struts-pwn
- https://github.com/rapid7/metasploit-framework/issues/8064
- https://isc.sans.edu/diary/22169
- https://nmap.org/nsedoc/scripts/http-vuln-cve2017-5638.html
- https://packetstormsecurity.com/files/141494/S2-45-poc.py.txt
- https://www.exploit-db.com/exploits/41614/
- http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-002.txt
- http://www.eweek.com/security/apache-struts-vulnerability-under-attack.html
- http://www.securityfocus.com/bid/96729
- http://www.securitytracker.com/id/1037973
- https://git1-us-west.apache.org/repos/asf?p=struts.git%3Ba=commit%3Bh=352306493971e7d5a756d61780d57a76eb1f519a
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2017-5638'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2017-5638'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2017-5638'curl 'https://api.contrastcyber.com/cve_products/CVE-2017-5638'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2017-5638'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).