CVE-2017-5638
Improper Handling of Exceptional Conditions
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Official description from the CVE record, published by apache. Copyright © 1999-2026 The MITRE Corporation. See /security/cve/legal for the CVE license. View the record on cve.org
Key data
CVSS 3.1 Critical 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector: Network
The vulnerable component can be reached over a network, possibly from the Internet.
Attack complexity: Low
No special conditions are needed. The attack can be repeated at will.
Privileges required: None
No account or privileges are needed.
User interaction: None
No action from any user is needed.
Scope: Unchanged
The impact stays within the vulnerable component.
Confidentiality impact: High
Serious or total effect on the secrecy of data.
Integrity impact: High
Serious or total effect on the trustworthiness of data.
Availability impact: High
Serious or total effect on availability.
| Metric | Value | What it means |
|---|---|---|
| Attack vector | Network | The vulnerable component can be reached over a network, possibly from the Internet. |
| Attack complexity | Low | No special conditions are needed. The attack can be repeated at will. |
| Privileges required | None | No account or privileges are needed. |
| User interaction | None | No action from any user is needed. |
| Scope | Unchanged | The impact stays within the vulnerable component. |
| Confidentiality impact | High | Serious or total effect on the secrecy of data. |
| Integrity impact | High | Serious or total effect on the trustworthiness of data. |
| Availability impact | High | Serious or total effect on availability. |
CVSS is owned and managed by FIRST.Org, Inc. (FIRST) and is used by permission. Each CVSS score on this site is shown together with its vector string, as published in the CVE record by the source named next to it. Learn more at first.org/cvss.
EPSS
- Score
- 0.99999 (99.99% probability)
- Percentile
- 99.99%
- Scores of
- Nov 10, 2026
- Model
- v2026.06.15
CISA Known Exploited Vulnerabilities
- Name in the catalog
- Apache Struts Remote Code Execution Vulnerability
- Added to the catalog
- Nov 3, 2021
- Federal due date
- May 3, 2022
- Ransomware campaigns
- Known use
CISA assessment as of Feb 6, 2025
- Exploitation
- Recorded by CISA as active
- Automatable
- yes
- Technical impact
- total
Weakness (CWE)
- CWE-755Improper Handling of Exceptional Conditions
Affected products
Apache Struts
- affected: 2.3.x before 2.3.32
- affected: 2.5.x before 2.5.10.1
References
- nmap.org/nsedoc/scripts/http-vuln-cve2017-5638.html
- arubanetworks.com/assets/alert/ARUBA-PSA-2017-002.txt
- arstechnica.com/security/2017/03/critical-vulnerability-und…
- 41570 (exploit-db.com)exploit
- security.netapp.com/advisory/ntap-20170310-0001
- github.com/rapid7/metasploit-framework/issues/8064
- struts.apache.org/docs/s2-046.html
- blog.talosintelligence.com/2017/03/apache-0-day-exploited.h…
- imperva.com/blog/2017/03/cve-2017-5638-new-remote-code-exec…
- h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US…
- VU#834067 (kb.cert.org)third-party-advisory
- isc.sans.edu/diary/22169
- struts.apache.org/docs/s2-045.html
- 1037973 (securitytracker.com)vdb-entry
- eweek.com/security/apache-struts-vulnerability-under-attack…
- 96729 (securityfocus.com)vdb-entry
- twitter.com/theog150/status/841146956135124993
- github.com/mazen160/struts-pwn
- packetstormsecurity.com/files/141494/S2-45-poc.py.txt
- symantec.com/security-center/network-protection-security-ad…
- support.lenovo.com/us/en/product_security/len-14200
- git1-us-west.apache.org/repos/asf?p=struts.git%3Ba=commit%3…
- h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US…
- git1-us-west.apache.org/repos/asf?p=struts.git%3Ba=commit%3…
- cwiki.apache.org/confluence/display/WW/S2-045
- 41614 (exploit-db.com)exploit
- cwiki.apache.org/confluence/display/WW/S2-046
- oracle.com/technetwork/security-advisory/cpujul2017-3236622…
- h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US…
- blog.trendmicro.com/trendlabs-security-intelligence/cve-201…
- [announce] 20200131 Apache Software Foundation Security Report: 2019 (lists.apache.org)mailing-list
- [announce] 20210125 Apache Software Foundation Security Report: 2020 (lists.apache.org)mailing-list
- [announce] 20210223 Re: Apache Software Foundation Security Report: 2020 (lists.apache.org)mailing-list
Timeline
- ID reserved
- Record published
- Added to CISA KEV
- Record last updated
Look up another CVE
About CubePath
Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:34 UTC. Sources and licenses