CVE-2017-5638
CONFIRMED EXPLOITEDKNOWN RANSOMWARE CAMPAIGN USEApache Struts Remote Code Execution Vulnerability
Is Apache Struts affected by CVE-2017-5638?
Apache Struts is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2017-5638, added on 2021-11-03. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (21 vulnerable CPE entries): apache struts, arubanetworks clearpass_policy_manager, hp server_automation, ibm storwize_v3500_firmware, ibm storwize_v5000_firmware and ibm storwize_v7000_firmware and 3 further CPE product entries.
Published CPE version bounds mark releases below 6.6.5 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2022-05-03, and CISA records known ransomware campaign use against it.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2016-3081Same productApache Struts
Apache Struts Command Injection Vulnerability
- CVE-2013-2251Same productApache Struts
Apache Struts Improper Input Validation Vulnerability
- CVE-2020-17530Same productApache Struts
Apache Struts Remote Code Execution Vulnerability
- CVE-2018-11776Same productApache Struts
Apache Struts Remote Code Execution Vulnerability
- CVE-2017-16651Neighboring entryRoundcube Roundcube Webmail
Roundcube Webmail File Disclosure Vulnerability
- CVE-2017-6327Neighboring entrySymantec Symantec Messaging Gateway
Symantec Messaging Gateway Remote Code Execution Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
Apache Struts Jakarta Multipart parser allows for malicious file upload using the Content-Type value, leading to remote code execution.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2021-11-03. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Known".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Struts has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- HTTP / web application surface (Apache Struts): inspect reverse-proxy, WAF, and application access/error logs alongside `Zeek http.log` and `Suricata eve.json` for anomalous requests targeting exposed endpoints.
- Authentication / status-handling weakness: audit service authentication logs for session establishment without complete challenge verification, unexpected return-code handling, or spikes in aborted auth handshakes.
- Inventory all hosts running Apache Struts and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- http://blog.talosintelligence.com/2017/03/apache-0-day-exploited.htmlExploitThird Party Advisory
- http://blog.trendmicro.com/trendlabs-security-intelligence/cve-2017-5638-apache-struts-vulnerability-remote-code-execution/ExploitThird Party Advisory
- http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-002.txtThird Party Advisory
- http://www.eweek.com/security/apache-struts-vulnerability-under-attack.htmlPress/Media CoverageThird Party Advisory
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.htmlPatchThird Party Advisory
- http://www.securityfocus.com/bid/96729Broken LinkThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1037973Broken LinkThird Party AdvisoryVDB Entry
- https://arstechnica.com/security/2017/03/critical-vulnerability-under-massive-attack-imperils-high-impact-sites/ExploitPress/Media Coverage
- https://cwiki.apache.org/confluence/display/WW/S2-045MitigationVendor Advisory
- https://cwiki.apache.org/confluence/display/WW/S2-046MitigationVendor Advisory
- https://exploit-db.com/exploits/41570ExploitThird Party AdvisoryVDB Entry
- https://git1-us-west.apache.org/repos/asf?p=struts.git%3Ba=commit%3Bh=352306493971e7d5a756d61780d57a76eb1f519aBroken Link
- https://git1-us-west.apache.org/repos/asf?p=struts.git%3Ba=commit%3Bh=6b8272ce47160036ed120a48345d9aa884477228Broken Link
- https://github.com/mazen160/struts-pwnExploit
- https://github.com/rapid7/metasploit-framework/issues/8064ExploitIssue Tracking
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03733en_usBroken Link
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03749en_usThird Party Advisory
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03723en_usThird Party Advisory
- https://isc.sans.edu/diary/22169ExploitThird Party Advisory
- https://lists.apache.org/thread.html/r1125f3044a0946d1e7e6f125a6170b58d413ebd4a95157e4608041c7%40%3Cannounce.apache.org%3EMailing List
- https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c%40%3Cannounce.apache.org%3EMailing List
- https://lists.apache.org/thread.html/r90890afea72a9571d666820b2fe5942a0a5f86be406fa31da3dd0922%40%3Cannounce.apache.org%3EMailing List
- https://nmap.org/nsedoc/scripts/http-vuln-cve2017-5638.htmlExploitThird Party Advisory
- https://packetstormsecurity.com/files/141494/S2-45-poc.py.txtBroken LinkExploitThird Party Advisory
- https://security.netapp.com/advisory/ntap-20170310-0001/Third Party Advisory
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Fast, template-driven vulnerability scanner by ProjectDiscovery
Intercepting web proxy and automated web application security testing tool
Multi-threaded IDS, IPS, and network security monitoring engine
Behavior-based open-source intrusion prevention system (IPS) and log analysis engine