Vulnerability in Apache Struts Could Allow for Remote Code Execution
MS-ISAC ADVISORY NUMBER:2017-018
A vulnerability has been discovered for Apache Software Foundation Struts version 2. Apache Struts is an open source framework used for building Java web applications. Successful exploitation of this vulnerability could allow for remote code execution in the context of the affected application. Depending on the privileges associated with the application, an attacker could install programs; view, change, or delete data; or create new accounts with full user rights.
There is no evidence of these vulnerabilities being exploited in the wild.
- Apache Struts versions 2.3.5 - 2.3.31, 2.5 to 2.5.10
- Large and medium government entities: HIGH
- Small government entities: MEDIUM
- Large and medium business entities: HIGH
- Small business entities: MEDIUM
A vulnerability has been discovered in Apache Struts which could allow for remote code execution. An attacker can exploit this issue by sending a malicious Content-Type value as part of a file upload request on Struts installations configured to use the Jakarta Multipart parser (CVE-2017-5638), the default Multipart parser for Struts 2. If the Content-Type value is not valid, an exception occurs and an error message is displayed.
Successful exploitation of this vulnerability could allow for remote code execution in the context of the application. Depending on the privileges associated with the application, an attacker could install programs; view, change, or delete data; or create new accounts with full user rights.
We recommend the following actions be taken:
Upgrade to one of the non-impacted versions of Adobe Struts (2.3.32 or 22.214.171.124), or follow the mitigation identified in the referenced Apache resources below after appropriate testing.
Verify no unauthorized system modifications have occurred on system before applying the patch.
Frequently validate type and content of uploaded data.
Run all software as a non-privileged user (one without administrative privileges) to diminish the effects of a successful attack.