ADVISORIES

GitHub Advisory Database

GHSA-j77q-2qqg-6989

Apache Struts vulnerable to remote arbitrary command execution due to improper input validation

Critical Known exploited CVE-2017-5638

Details

Apache Struts versions prior to 2.3.32 and 2.5.10.1 contain incorrect exception handling and error-message generation during file-upload attempts using the Jakarta Multipart parser, 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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.apache.struts:struts2-core
From 2.3.0 before 2.3.32 (fixed in 2.3.32)
Mavenorg.apache.struts:struts2-core
From 2.5.0 before 2.5.10.1 (fixed in 2.5.10.1)

References