CVE-2012-0838 in the critical feed json
Apache Struts Code injection due to conversion error
published 2012-03-02 14 y ago modified 2026-06-16 4 mo ago also GHSA-mwrx-hx6x-3hhv , EUVD-2022-4641
- cvss
- 10.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 13.7%
- EPSS 13.7% chance of exploitation in 30 days, percentile 96%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.struts:struts2-core 2.2.3.1
- maven org.apache.struts.xwork:xwork-core 2.2.3.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-0838 updated cvss 6.8
Struts2: Certain strings evaluated as OGNL expressions, leading to run-time data modification or arbitrary code execution
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
13.69% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.struts:struts2-core | <2.2.3.1 |
2.2.3.1 |
| maven | org.apache.struts.xwork:xwork-core | <2.2.3.1 |
2.2.3.1 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e
web
-
github.com
/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b
web
-
github.com
/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892
web
-
struts.apache.org
/2.3.1.2/docs/s2-007.html
web, vendor-advisory
-
issues.apache.org
/jira/browse/WW-3668
web, issue-tracking, vendor-advisory
-
jvndb.jvn.jp
/jvndb/JVNDB-2012-000012
third-party-advisory, web, vdb-entry
-
jvn.jp
/en/jp/JVN79099262/index.html
third-party-advisory, web, vdb-entry
-
nvd.nist.gov
/vuln/detail/CVE-2012-0838
advisory
-
github.com
/apache/struts
package
Sources
- CVE List CVE-2012-0838
- GitHub Advisory GHSA-mwrx-hx6x-3hhv
- NVD CVE-2012-0838
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.