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
- Severity: Critical (CVSS 2.0 base score 10.0)
- EPSS exploit prediction: 14% (96th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-20
- Affected product: Apache Struts
- Published:
- Last modified:
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
- 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
- https://issues.apache.org/jira/browse/WW-3668
Affected products (1)
- cpe:2.3:a:apache:struts:*:*:*:*:*:*:*:*
More vulnerabilities in Apache Struts
- CVE-2013-4316 — Critical (CVSS 10.0): Apache Struts 2.0.0 through 2.3.15.1 enables Dynamic Method Invocation by default, which has unknown impact and attack…
- CVE-2024-53677 — Critical (CVSS 9.8): File upload logic in Apache Struts is flawed. An attacker can manipulate file upload params to enable paths traversal…
- CVE-2023-50164 — Critical (CVSS 9.8): An attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to…
- CVE-2021-31805 — Critical (CVSS 9.8): The fix issued for CVE-2020-17530 was incomplete. So from Apache Struts 2.0.0 to 2.5.29, still some of the tag’s…
- CVE-2020-17530 — Critical (CVSS 9.8): Forced OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code execution. Affected…
- CVE-2019-0230 — Critical (CVSS 9.8): Apache Struts 2.0.0 to 2.5.20 forced double OGNL evaluation, when evaluated on raw user input in tag attributes, may…
All CVEs affecting Apache Struts →
Other CWE-20 (Improper Input Validation) vulnerabilities
- CVE-2026-48316 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48281 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48277 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48055 — Critical (CVSS 10.0): Streambert is a cross-platform Electron Desktop App to stream and download any video media. In versions 2.4.0 and…
- CVE-2026-34910 — Critical (CVSS 10.0): A malicious actor with access to the network could exploit an Improper Input Validation vulnerability found in UniFi OS…
- CVE-2026-33587 — Critical (CVSS 10.0): Lack of user input sanitisation in Open Notebook v1.8.3 allows the application user to execute Python code (and…
Browse all CWE-20 (Improper Input Validation) vulnerabilities →