CVE-2017-5638
9.8, critical Known exploited Used in ransomwareApache Struts Remote Code Execution Vulnerability
- CVSS
- 9.8, critical critical CVSS v3.1
- EPSS, next 30 days
- 100% higher than 99.9% of scored CVEs
- Exploitation
- Confirmed in the wild
- Published
- 11 Mar 20179 years ago
Known exploited
CISA added this to the Known Exploited Vulnerabilities Catalog on 3 Nov 2021 and links it to ransomware activity. US federal agencies had to remediate by 3 May 2022, a deadline that has passed.
Required action. Apply updates per vendor instructions.
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.
Details
- Vendor
- Apache
- Product
- Apache Struts
- Weakness
- CWE-755 (opens in a new tab)
- Status
- Analyzed
- Updated
- 17 Jun 2026
- Assigner
- security@apache.org
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References 34
Exploit code 10
- blog.talosintelligence.com /2017/03/apache-0-day-exploited.html (opens in a new tab)
- blog.trendmicro.com /trendlabs-security-intelligence/cve-2017-5638-apache-struts-vulnerability-remote-code-execution/ (opens in a new tab)
- arstechnica.com /security/2017/03/critical-vulnerability-under-massive-attack-imperils-high-impact-sites/ (opens in a new tab)
- exploit-db.com /exploits/41570 (opens in a new tab)
- github.com /mazen160/struts-pwn (opens in a new tab)
- github.com /rapid7/metasploit-framework/issues/8064 (opens in a new tab)
- isc.sans.edu /diary/22169 (opens in a new tab)
- nmap.org /nsedoc/scripts/http-vuln-cve2017-5638.html (opens in a new tab)
Patches and fixes 1
Advisories 16
- arubanetworks.com /assets/alert/ARUBA-PSA-2017-002.txt (opens in a new tab)
- eweek.com /security/apache-struts-vulnerability-under-attack.html (opens in a new tab)
- securityfocus.com /bid/96729 (opens in a new tab)
- securitytracker.com /id/1037973 (opens in a new tab)
- cwiki.apache.org /confluence/display/WW/S2-045 (opens in a new tab)
- cwiki.apache.org /confluence/display/WW/S2-046 (opens in a new tab)
- h20566.www2.hpe.com /hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03749en_us (opens in a new tab)
- h20566.www2.hpe.com /hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03723en_us (opens in a new tab)
8 more
- security.netapp.com /advisory/ntap-20170310-0001/ (opens in a new tab)
- struts.apache.org /docs/s2-045.html (opens in a new tab)
- struts.apache.org /docs/s2-046.html (opens in a new tab)
- support.lenovo.com /us/en/product_security/len-14200 (opens in a new tab)
- twitter.com /theog150/status/841146956135124993 (opens in a new tab)
- imperva.com /blog/2017/03/cve-2017-5638-new-remote-code-execution-rce-vulnerability-in-apache-struts-2/ (opens in a new tab)
- kb.cert.org /vuls/id/834067 (opens in a new tab)
- symantec.com /security-center/network-protection-security-advisories/SA145 (opens in a new tab)
Other references 7
- git1-us-west.apache.org /repos/asf?p=struts.git%3Ba=commit%3Bh=352306493971e7d5a756d61780d57a76eb1f519a (opens in a new tab)
- git1-us-west.apache.org /repos/asf?p=struts.git%3Ba=commit%3Bh=6b8272ce47160036ed120a48345d9aa884477228 (opens in a new tab)
- h20566.www2.hpe.com /hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03733en_us (opens in a new tab)
- lists.apache.org /thread.html/r1125f3044a0946d1e7e6f125a6170b58d413ebd4a95157e4608041c7%40%3Cannounce.apache.org%3E (opens in a new tab)
- lists.apache.org /thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c%40%3Cannounce.apache.org%3E (opens in a new tab)
- lists.apache.org /thread.html/r90890afea72a9571d666820b2fe5942a0a5f86be406fa31da3dd0922%40%3Cannounce.apache.org%3E (opens in a new tab)
- cisa.gov /known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-5638 (opens in a new tab)
The kind is read from NVD's tags where present and from the shape of the URL otherwise, so treat it as a hint.
Other Apache CVEs
Every Apache CVE we holdSame vendor in what we hold, not a known link between the flaws.
- CVE-2026-34486 Apache Tomcat Missing Encryption of Sensitive Data Vulnerability KEV EPSS 7% 7.5, high
- CVE-2026-34197 Apache ActiveMQ Improper Input Validation Vulnerability KEV EPSS 15% 8.8, high
- CVE-2025-24813 Apache Tomcat Path Equivalence Vulnerability KEV EPSS 100% 9.8, critical
- CVE-2024-45195 Apache OFBiz Forced Browsing Vulnerability KEV EPSS 100% 7.5, high
- CVE-2024-38856 Apache OFBiz Incorrect Authorization Vulnerability KEV EPSS 99% 9.8, critical
- CVE-2024-38475 Apache HTTP Server Improper Escaping of Output Vulnerability KEV EPSS 100% 9.1, critical
- CVE-2024-32113 Apache OFBiz Path Traversal Vulnerability KEV EPSS 100% 9.8, critical
- CVE-2024-27348 Apache HugeGraph-Server Improper Access Control Vulnerability KEV EPSS 99% 9.8, critical
Beyond this page
Is CVE-2017-5638 in your network?
This page tells you how dangerous CVE-2017-5638 is out there. Whether it sits on one of your devices, only a scan of your own network can tell. That is what our systems do, every day, for the companies we protect.
CVE-2017-5638 is in the CISA catalogue of exploited vulnerabilities: attackers are already exploiting it.
-
EXYS7600 OCELOT
Find it before attackers do
Ocelot scans your network on a schedule and reports every vulnerability it finds by its CVE identifier, with its CVSS score and how many of your hosts are affected. A finding like CVE-2017-5638 comes with the devices to patch.
Learn more about EXYS7600 OCELOT -
EXYS7950 KONDRA
Detect it if it's exploited
Until the patch is applied, Kondra monitors your network, events and endpoints in real time. It keeps an inventory of the software installed on every endpoint, and its anomaly detection rules flag what an attacker does once inside.
Learn more about EXYS7950 KONDRA
Assembled from the NVD 2.0 API, the CISA Known Exploited Vulnerabilities Catalog and FIRST EPSS. Scores are as of our last collection on 17 Oct 2026, not the live upstream state.