logo
DATABASE RESOURCES PRICING ABOUT US

Remote Code Execution (RCE) Through Jakarta Multipart Parser

Description

struts2-core is vulnerable to remote code execution (RCE). The vulnerability exists due to the improper handling on the `Content-Type` header when an invalid `Content-Type` is received, in conjunction with the use of the Jakarta based file upload Multipart parser. An exception will be thrown on invalid `Content-Type`, whose error message is then displayed to the user. A malicious user can send arbitrary commands by sending the payload via `Content-Type`, and then receiving the output using the error message. Update: A similar issue, S2-046, is found in the handling of the `Content-Disposition` and `Content-Length` pair. A similar exception will be thrown on invalid `Content-Disposition` and `Content-Length` pair.


Affected Software


CPE Name Name Version
struts 2 core 2.3.31
struts 2 core 2.5.10

Related