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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.struts » struts2-core | < 2.3.20 | 2.3.20 |
Blast radius
39% of the dependent artifacts (127) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,429 |
| 2 hops | 27,061 |
| 3 hops | 11,783 |
| 4 hops | 2,310 |
| 5 hops | 5 |
Most used dependents
- com.atlassian.bamboo » atlassian-bamboo-web203 usages
- com.atlassian.bamboo » atlassian-bamboo-api171 usages
- com.atlassian.bamboo » atlassian-bamboo-core127 usages
- com.atlassian.bamboo » atlassian-bamboo-test-utils105 usages
- com.atlassian.bamboo » atlassian-bamboo-pageobjects65 usages
- com.centit.framework » framework-core53 usages
- com.jgeppert.struts2.jquery » struts2-jquery-plugin50 usages
- org.apache.struts » struts2-convention-plugin48 usages
- com.atlassian.bamboo.plugins » atlassian-bamboo-plugin-test-utils41 usages
- com.atlassian.upm » atlassian-universal-plugin-manager-plugin38 usages
- com.atlassian.plugins » atlassian-nav-links-plugin30 usages
- com.atlassian.bamboo » atlassian-bamboo-deployments-api27 usages
- com.atlassian.upm » upm-core24 usages
- com.github.httl » httl24 usages
- com.atlassian.crowd » crowd-integration-client23 usages
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
| Advisory | NVD CVE-2015-2992 | nvd.nist.gov |
| Package | apache/struts | github.com |
| Web | confluence/display/WW/S2-025 | cwiki.apache.org |
| Web | confluence/display/WW/Security | cwiki.apache.org |
| Web | advisory/ntap-20200330-0001 | security.netapp.com |
| Web | en/jp/JVN88408929/index.html | jvn.jp |
| Web | en/contents/2015/JVNDB-2015-000124.html | jvndb.jvn.jp |
| Web | bid/76624 | securityfocus.com |
