Actively exploited · Published Mar 11, 2017 · Assigned by apache
CVE-2017-5638
Critical 9.8 Exploited Ransomware
In plain English
A critical-severity security flaw in Apache Struts from Apache Software Foundation. Attackers are actively exploiting it in the wild (listed by CISA on November 3, 2021). It has been used in ransomware campaigns. The chance it is exploited in the next 30 days is estimated at 100.0% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply updates per vendor instructions.
Federal agencies must remediate by May 3, 2022.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.apache.struts:struts2-core | 2.3.32 | GHSA-j77q-2qqg-6989 |
| Maven | org.apache.struts:struts2-core | 2.5.10.1 | GHSA-j77q-2qqg-6989 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Struts | 2.3.x before 2.3.322.5.x before 2.5.10.1 |
Weakness: CWE-755 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nmap.org/nsedoc/scripts/http-vuln-cve2017-5638.html x_refsource_MISC
- http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-002.txt x_refsource_CONFIRM
- https://arstechnica.com/security/2017/03/critical-vulnerability-under-massive-attack-imperils-high-impact-sites/ x_refsource_MISC
- 41570 exploit, x_refsource_EXPLOIT-DB
- https://security.netapp.com/advisory/ntap-20170310-0001/ x_refsource_CONFIRM
- https://github.com/rapid7/metasploit-framework/issues/8064 x_refsource_MISC
- https://struts.apache.org/docs/s2-046.html x_refsource_CONFIRM
- http://blog.talosintelligence.com/2017/03/apache-0-day-exploited.html x_refsource_MISC
- https://www.imperva.com/blog/2017/03/cve-2017-5638-new-remote-code-execution-rce-vulnerability-in-apache-struts-2/ x_refsource_MISC
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03733en_us x_refsource_CONFIRM
- VU#834067 third-party-advisory, x_refsource_CERT-VN
- https://isc.sans.edu/diary/22169 x_refsource_MISC
- https://struts.apache.org/docs/s2-045.html x_refsource_CONFIRM
- 1037973 vdb-entry, x_refsource_SECTRACK
- http://www.eweek.com/security/apache-struts-vulnerability-under-attack.html x_refsource_MISC
- 96729 vdb-entry, x_refsource_BID
- https://twitter.com/theog150/status/841146956135124993 x_refsource_MISC
- https://github.com/mazen160/struts-pwn x_refsource_MISC
- https://packetstormsecurity.com/files/141494/S2-45-poc.py.txt x_refsource_MISC
- https://www.symantec.com/security-center/network-protection-security-advisories/SA145 x_refsource_CONFIRM
- https://support.lenovo.com/us/en/product_security/len-14200 x_refsource_CONFIRM
- https://git1-us-west.apache.org/repos/asf?p=struts.git%3Ba=commit%3Bh=352306493971e7d5a756d61780d57a76eb1f519a x_refsource_CONFIRM
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03723en_us x_refsource_CONFIRM
- https://git1-us-west.apache.org/repos/asf?p=struts.git%3Ba=commit%3Bh=6b8272ce47160036ed120a48345d9aa884477228 x_refsource_CONFIRM
- https://cwiki.apache.org/confluence/display/WW/S2-045 x_refsource_CONFIRM
- 41614 exploit, x_refsource_EXPLOIT-DB
- https://cwiki.apache.org/confluence/display/WW/S2-046 x_refsource_CONFIRM
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html x_refsource_CONFIRM
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03749en_us x_refsource_CONFIRM
- http://blog.trendmicro.com/trendlabs-security-intelligence/cve-2017-5638-apache-struts-vulnerability-remote-code-execution/ x_refsource_MISC
- [announce] 20200131 Apache Software Foundation Security Report: 2019 mailing-list, x_refsource_MLIST
- [announce] 20210125 Apache Software Foundation Security Report: 2020 mailing-list, x_refsource_MLIST
- [announce] 20210223 Re: Apache Software Foundation Security Report: 2020 mailing-list, x_refsource_MLIST
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-5638 government-resource