Cross-Site Request Forgery in Apache Struts
The token check mechanism in Apache Struts 2.0.0 through 2.3.4 does not properly validate the token name configuration parameter, which allows remote attackers to perform cross-site request forgery (CSRF) attacks by setting the token name configuration parameter to a session attribute.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.struts:struts2-core | >= 2.0.0, < 2.3.4.1 | 2.3.4.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-4386
- https://exchange.xforce.ibmcloud.com/vulnerabilities/78182
- https://issues.apache.org/jira/browse/WW-3858
- http://struts.apache.org/2.x/docs/s2-010.html
- http://www.openwall.com/lists/oss-security/2012/09/01/4
- http://www.openwall.com/lists/oss-security/2012/09/01/5
- Weakness (CWE)
CWE-352- Platform
- Java / Kotlin (Maven)
- Package
org.apache.struts:struts2-core- Disclosed
- 17.05.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-2rvh-q539-q33v - CC BY 4.0
Vulnerability history: org.apache.struts:struts2-core
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 60
- First → latest
- 10.2018 01.2026
- Without a fix
- 0
- Exploited in attacks
- 6
Severity breakdown
- Critical 14
- High 25
- Medium 20
- Low 1
Disclosures per year
- 2018: 6
- 2019: 0
- 2020: 0
- 2021: 1
- 2022: 45
- 2023: 4
- 2024: 1
- 2025: 2
- 2026: 1
-
Cross-Site Request Forgery in Apache Struts this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.