Code injection in Apache Struts - CVE-2017-5638

 

Code injection in Apache Struts - CVE-2017-5638

Published: March 9, 2017 / Updated: May 11, 2023


Vulnerability identifier: #VU5930
CSH Severity: Critical
CVSS v4: 9.3 [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]
CVE-ID: CVE-2017-5638
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

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

The vulnerability exists due to input validation error in the Jakarta based file upload Multipart parser when processing Content-Type HTTP header. A remote attacker can send a specially crafted HTTP POST request containing malicious Content-Type header and execute arbitrary code on the target system with privileges of the Apache Struts user.

Successful exploitation of this vulnerability may allow an attacker to compromise vulnerable system.

Note: this vulnerability is being actively exploited in the wild.


Affected software

Apache Struts
FlashSystem 900 9840-AE2 and 9843-AE2
iVMS-5200
FlashSystem 840 9840-AE1 & 9843-AE1
Sterling Selling and Fulfillment Foundation
IBM Storwize V3500
IBM Storwize V3700
IBM Storwize V5000
IBM Storwize V7000
IBM FlashSystem V9000

How to mitigate CVE-2017-5638

Update to version 2.3.32 or 2.5.10.1.

IBM Storwize V3500 - addressed in versions 7.6.1.8, 7.7.1.6, 7.8.1.0
IBM Storwize V3700 - addressed in versions 7.6.1.8, 7.7.1.6, 7.8.1.0
IBM Storwize V5000 - addressed in versions 7.6.1.8, 7.7.1.6, 7.8.1.0
IBM Storwize V7000 - addressed in versions 7.6.1.8, 7.7.1.6, 7.8.1.0
IBM FlashSystem V9000 - addressed in versions 7.6.1.8, 7.7.1.6, 7.8.1.0
Sterling Selling and Fulfillment Foundation - addressed in versions 9.1.0- SFP6, 9.2.0- SFP6, 9.2.1- SFP6, 9.3.0-SFP5, 9.4.0-SFP3, 9.5.0-SFP2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins