Apache Struts vulnerable to remote arbitrary command execution due to improper input validation
Apache Software Foundation Apache Struts
Actively exploited in the wild
Added to CISA's Known Exploited Vulnerabilities catalog on Nov 3, 2021. US federal agencies must patch by May 3, 2022.
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.struts:struts2-core Maven |
|
|
Original description
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.