Skip to content
Fencer Intel
critical 10.0

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 products
    not 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

Sources

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.