CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2017-5638

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.
Publish Date : 2017-03-10 Last Update Date : 2017-09-22
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
10.0
Confidentiality Impact Complete (There is total information disclosure, resulting in all system files being revealed.)
Integrity Impact Complete (There is a total compromise of system integrity. There is a complete loss of system protection, resulting in the entire system being compromised.)
Availability Impact Complete (There is a total shutdown of the affected resource. The attacker can render the resource completely unavailable.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Execute Code
CWE ID 20

- Products Affected By CVE-2017-5638

# Product Type Vendor Product Version Update Edition Language
1 Application Apache Struts 2.3.5 Version Details Vulnerabilities
2 Application Apache Struts 2.3.6 Version Details Vulnerabilities
3 Application Apache Struts 2.3.7 Version Details Vulnerabilities
4 Application Apache Struts 2.3.8 Version Details Vulnerabilities
5 Application Apache Struts 2.3.9 Version Details Vulnerabilities
6 Application Apache Struts 2.3.10 Version Details Vulnerabilities
7 Application Apache Struts 2.3.11 Version Details Vulnerabilities
8 Application Apache Struts 2.3.12 Version Details Vulnerabilities
9 Application Apache Struts 2.3.13 Version Details Vulnerabilities
10 Application Apache Struts 2.3.14 Version Details Vulnerabilities
11 Application Apache Struts 2.3.14.1 Version Details Vulnerabilities
12 Application Apache Struts 2.3.14.2 Version Details Vulnerabilities
13 Application Apache Struts 2.3.14.3 Version Details Vulnerabilities
14 Application Apache Struts 2.3.15 Version Details Vulnerabilities
15 Application Apache Struts 2.3.15.1 Version Details Vulnerabilities
16 Application Apache Struts 2.3.15.2 Version Details Vulnerabilities
17 Application Apache Struts 2.3.15.3 Version Details Vulnerabilities
18 Application Apache Struts 2.3.16 Version Details Vulnerabilities
19 Application Apache Struts 2.3.16.1 Version Details Vulnerabilities
20 Application Apache Struts 2.3.16.2 Version Details Vulnerabilities
21 Application Apache Struts 2.3.16.3 Version Details Vulnerabilities
22 Application Apache Struts 2.3.17 Version Details Vulnerabilities
23 Application Apache Struts 2.3.19 Version Details Vulnerabilities
24 Application Apache Struts 2.3.20 Version Details Vulnerabilities
25 Application Apache Struts 2.3.20.1 Version Details Vulnerabilities
26 Application Apache Struts 2.3.20.2 Version Details Vulnerabilities
27 Application Apache Struts 2.3.20.3 Version Details Vulnerabilities
28 Application Apache Struts 2.3.21 Version Details Vulnerabilities
29 Application Apache Struts 2.3.22 Version Details Vulnerabilities
30 Application Apache Struts 2.3.23 Version Details Vulnerabilities
31 Application Apache Struts 2.3.24 Version Details Vulnerabilities
32 Application Apache Struts 2.3.24.1 Version Details Vulnerabilities
33 Application Apache Struts 2.3.24.2 Version Details Vulnerabilities
34 Application Apache Struts 2.3.24.3 Version Details Vulnerabilities
35 Application Apache Struts 2.3.25 Version Details Vulnerabilities
36 Application Apache Struts 2.3.26 Version Details Vulnerabilities
37 Application Apache Struts 2.3.27 Version Details Vulnerabilities
38 Application Apache Struts 2.3.28 Version Details Vulnerabilities
39 Application Apache Struts 2.3.28.1 Version Details Vulnerabilities
40 Application Apache Struts 2.3.29 Version Details Vulnerabilities
41 Application Apache Struts 2.3.30 Version Details Vulnerabilities
42 Application Apache Struts 2.3.31 Version Details Vulnerabilities
43 Application Apache Struts 2.5 Version Details Vulnerabilities
44 Application Apache Struts 2.5.1 Version Details Vulnerabilities
45 Application Apache Struts 2.5.2 Version Details Vulnerabilities
46 Application Apache Struts 2.5.3 Version Details Vulnerabilities
47 Application Apache Struts 2.5.4 Version Details Vulnerabilities
48 Application Apache Struts 2.5.5 Version Details Vulnerabilities
49 Application Apache Struts 2.5.6 Version Details Vulnerabilities
50 Application Apache Struts 2.5.7 Version Details Vulnerabilities
51 Application Apache Struts 2.5.8 Version Details Vulnerabilities
52 Application Apache Struts 2.5.9 Version Details Vulnerabilities
53 Application Apache Struts 2.5.10 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Apache Struts 53

- References For CVE-2017-5638

https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03723en_us CONFIRM
https://www.exploit-db.com/exploits/41614/
EXPLOIT-DB 41614
https://struts.apache.org/docs/s2-046.html CONFIRM
https://packetstormsecurity.com/files/141494/S2-45-poc.py.txt
https://struts.apache.org/docs/s2-045.html CONFIRM
https://nmap.org/nsedoc/scripts/http-vuln-cve2017-5638.html
http://www.eweek.com/security/apache-struts-vulnerability-under-attack.html
https://git1-us-west.apache.org/repos/asf?p=struts.git;a=commit;h=6b8272ce47160036ed120a48345d9aa884477228 CONFIRM
https://github.com/mazen160/struts-pwn
https://isc.sans.edu/diary/22169
https://github.com/rapid7/metasploit-framework/issues/8064
https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03733en_us CONFIRM
https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03749en_us CONFIRM
https://exploit-db.com/exploits/41570
EXPLOIT-DB 41570
https://git1-us-west.apache.org/repos/asf?p=struts.git;a=commit;h=352306493971e7d5a756d61780d57a76eb1f519a CONFIRM
https://support.lenovo.com/us/en/product_security/len-14200 CONFIRM
https://cwiki.apache.org/confluence/display/WW/S2-046 CONFIRM
http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html CONFIRM
http://www.securityfocus.com/bid/96729
BID 96729 Apache Struts CVE-2017-5638 Remote Code Execution Vulnerability Release Date:2017-05-26
http://www.securitytracker.com/id/1037973
SECTRACK 1037973
https://www.imperva.com/blog/2017/03/cve-2017-5638-new-remote-code-execution-rce-vulnerability-in-apache-struts-2/
https://twitter.com/theog150/status/841146956135124993
https://arstechnica.com/security/2017/03/critical-vulnerability-under-massive-attack-imperils-high-impact-sites/
https://cwiki.apache.org/confluence/display/WW/S2-045 CONFIRM
http://blog.trendmicro.com/trendlabs-security-intelligence/cve-2017-5638-apache-struts-vulnerability-remote-code-execution/
http://blog.talosintelligence.com/2017/03/apache-0-day-exploited.html
https://www.symantec.com/security-center/network-protection-security-advisories/SA145 CONFIRM

- Metasploit Modules Related To CVE-2017-5638

Apache Struts Jakarta Multipart Parser OGNL Injection
This module exploits a remote code execution vulnerability in Apache Struts version 2.3.5 - 2.3.31, and 2.5 - 2.5.10. Remote Code Execution can be performed via http Content-Type header. Native payloads will be converted to executables and dropped in the server's temp dir. If this fails, try a cmd/* payload, which won't have to write to the disk.
Module type : exploit Rank : excellent


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.