Remote code execution in Apache Struts - CVE-2017-9791

 

Remote code execution in Apache Struts - CVE-2017-9791

Published: July 10, 2017 / Updated: February 20, 2022


Vulnerability identifier: #VU7391
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Amber
CVE-ID: CVE-2017-9791
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild
Vendor: Apache Foundation
Affected software:
Apache Struts

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to input validation error when using the Struts 2 Struts 1 plugin and it's a Struts 1 action. A remote attacker can send an error message in the ActionMessage class containing malicious field value and execute arbitrary code on the target system.

Successful exploitation of the vulnerability may result in system compromise.

How to mitigate CVE-2017-9791

Follow vendor's recommendations to mitigate this vulnerability.

Sources