MODERATE

CVE-2015-2992

Cross-site Scripting in Apache Struts

Description

When the Struts2 debug mode is turned on, under certain conditions an arbitrary script may be executed in the 'Problem Report' screen. Also if JSP files are exposed to be accessed directly it's possible to execute an arbitrary script.

It is generally not advisable to have debug mode switched on outside of the development environment. Debug mode should always be turned off in production setup. Also never expose JSPs files directly and hide them inside WEB-INF folder or define dedicated security constraints to block access to raw JSP files.

Struts >= 2.3.20 is not vulnerable to this attack. We recommend upgrading to Struts 2.3.20 or higher if turning off debug mode is not possible.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.struts » struts2-core
< 2.3.20
2.3.20

Blast radius

1affected artifacts
51affected versions
324dependent artifacts (est.)
44,588dependent versions

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

DepthDependent versions
Direct
3,429
2 hops
27,061
3 hops
11,783
4 hops
2,310
5 hops
5

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
Packagegithub.com
Webcwiki.apache.org
Webcwiki.apache.org
Websecurity.netapp.com
Webjvn.jp
Webjvndb.jvn.jp
Websecurityfocus.com