CVE-2012-0838

CVE-2012-0838 is a critical-severity vulnerability in Apache Struts with a CVSS 2.0 base score of 10.0. Its EPSS exploit-prediction score of 14% places it in the 96th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-20.

Key facts

Description

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.

Frequently asked questions

What is CVE-2012-0838?
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.
How severe is CVE-2012-0838?
CVE-2012-0838 has a CVSS 2.0 base score of 10.0, rated critical severity.
Is CVE-2012-0838 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 14% (96th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2012-0838?
CVE-2012-0838 affects Apache Struts. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2012-0838?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
When was CVE-2012-0838 published?
CVE-2012-0838 was published on 2012-03-02 and last updated on 2026-06-16.

References

Affected products (1)

More vulnerabilities in Apache Struts

All CVEs affecting Apache Struts →

Other CWE-20 (Improper Input Validation) vulnerabilities

Browse all CWE-20 (Improper Input Validation) vulnerabilities →