Apache Struts Code injection due to conversion error
Apache Struts 2 before 2.2.3.1 evaluates a string as an OGNL expression during the handling of a conversion error, which allows remote attackers to modify run-time data values, and consequently execute arbitrary code, via invalid input to a field.
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.2.3.1 | 2.2.3.1 |
| Java / Kotlin (Maven) | org.apache.struts.xwork:xwork-core | < 2.2.3.1 | 2.2.3.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-0838
- https://github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e
- https://github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b
- https://github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892
- https://github.com/apache/struts
- https://issues.apache.org/jira/browse/WW-3668
- http://jvn.jp/en/jp/JVN79099262/index.html
- http://jvndb.jvn.jp/jvndb/JVNDB-2012-000012
- http://struts.apache.org/2.3.1.2/docs/s2-007.html
- Weakness (CWE)
CWE-20- Platform
- Java / Kotlin (Maven)
- Package
org.apache.struts:struts2-core, org.apache.struts.xwork:xwork-core- Disclosed
- 14.05.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-mwrx-hx6x-3hhv - 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
-
Apache Struts Code injection due to conversion error 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.