Exploited vulnerabilities · Apache
CVE-2017-5638
Apache Struts Remote Code Execution Vulnerability
Apache Struts Jakarta Multipart parser allows for malicious file upload using the Content-Type value, leading to remote code execution.
Description in the NVD
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.
Required action according to CISA
Apply updates per vendor instructions.
What to do now
- Check your exposureFind out whether Apache Struts runs anywhere in your environment, including systems of suppliers.
- Patch or mitigateApply the vendor update. If that is not possible at once, use the vendor's mitigation or take the system off the network.
- Look for signs of an attackThis vulnerability is exploited in real attacks. Review the logs of affected systems for the time before the patch.
References
- nvd.nist.gov/vuln/detail/CVE-2017-5638
- github.com/rapid7/metasploit-framework/issues/8064
- cwiki.apache.org/confluence/display/WW/S2-045
- cwiki.apache.org/confluence/display/WW/S2-046
- exploit-db.com/exploits/41570
- git1-us-west.apache.org/repos/asf?p=struts.git;a=commit;h=352306493971e7d5a756d61780d57a76
- git1-us-west.apache.org/repos/asf?p=struts.git;a=commit;h=6b8272ce47160036ed120a48345d9aa8
- github.com/advisories/GHSA-j77q-2qqg-6989
- nvd.nist.gov/vuln/detail/CVE-2017-5638
More exploited vulnerabilities in Apache products
Data: CISA Known Exploited Vulnerabilities Catalog and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.