CVE-2013-4310: Struts2 core Apache Struts2 Broken Access Control Vulnerability
MODERATECVE-2013-4310 is a MODERATE apache struts2 broken access control vulnerability (CWE-284: Improper Access Control) affecting Struts2 core libraries in the Maven ecosystem. The issue involves apache struts2 broken access control vulnerability. Remediation is available by upgrading affected packages to version 2.3.15.3.
CVE-2013-4310 at a Glance
How to Fix CVE-2013-4310
To remediate this vulnerability, upgrade all affected Struts2 core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.3.15.3</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.struts
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2013-4310, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.struts
Analyze the terminal output to locate any version of Struts2 core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.15.3), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.struts command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Struts2 core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2013-4310 Affected Struts2 core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.struts:struts2-core
|
Maven |
< 2.3.15.3
|
2.3.15.3
|
References
Frequently Asked Questions
What is CVE-2013-4310?
Which Struts2 core versions are affected?
What version fixes CVE-2013-4310?
Is struts2-core affected?
What CWE is associated with CVE-2013-4310?
How can I check Maven dependencies for CVE-2013-4310?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q5q8-jghf-3pm3",
"modified" : "2023-08-15T19:02:21Z",
"published" : "2022-05-17T04:44:52Z",
"aliases" : [ "CVE-2013-4310" ],
"summary" : "Apache Struts2 Broken Access Control Vulnerability",
"details" : "The Struts 2 action mapping mechanism supports the special parameter prefix action: which is intended to help with attaching navigational information to buttons within forms, under certain conditions this can be used to bypass security constraints. \n\nIn Struts 2.3.15.3 the action mapping mechanism was changed to avoid circumventing security constraints. Two additional constants were introduced to steer behaviour of DefaultActionMapper:\n\n- struts.mapper.action.prefix.enabled - when set to false support for \"action:\" prefix is disabled, set to false by default\n- struts.mapper.action.prefix.crossNamespaces - when set to false, actions defined with \"action:\" prefix must be in the same namespace as current action\n\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.struts:struts2-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.3.15.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4310"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/struts/commit/0c8366cb792227d484b9ca13e537037dd0cb57dc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/struts"
}, {
"type" : "WEB",
"url" : "http://struts.apache.org/release/2.3.x/docs/s2-018.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-03T23:00:35Z",
"nvd_published_at" : "2013-09-30T21:55:00Z"
}
}