CRITICAL 10.0

CVE-2017-5638

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

Known exploited: listed in the CISA Known Exploited Vulnerabilities catalog.

Description

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.struts » struts2-core
>= 2.3.0, < 2.3.32>= 2.5.0, < 2.5.10.1
2.3.32, 2.5.10.1

Blast radius

1affected artifacts
59affected versions
342dependent artifacts (est.)
96,538dependent versions

27% of the dependent artifacts (93) still pull an affected version in their latest release.

DepthDependent versions
Direct
6,174
2 hops
59,208
3 hops
24,131
4 hops
5,570
5 hops
1,193
6 hops
262

Most used dependents

Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Advisorygithub.com
Packagegithub.com
Webgithub.com
Webgithub.com
Webgithub.com
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Webnmap.org
Webpacketstormsecurity.com
Websecurity.netapp.com
Webstruts.apache.org
Webstruts.apache.org
Websupport.lenovo.com
Webtwitter.com
Webweb.archive.org
Webweb.archive.org
Webcisa.gov
Webexploit-db.com
Webimperva.com
Webkb.cert.org
Websymantec.com
Webarstechnica.com
Webcwiki.apache.org
Webcwiki.apache.org
Webexploit-db.com
Webgit1-us-west.apache.org
Webgit1-us-west.apache.org
Webgit1-us-west.apache.org
Webgit1-us-west.apache.org
Webgithub.com
Webh20566.www2.hpe.com
Webh20566.www2.hpe.com
Webh20566.www2.hpe.com
Webisc.sans.edu
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Webblog.talosintelligence.com