Struts2: Certain strings evaluated as OGNL expressions, leading to run-time data modification or arbitrary code execution
Published Mar 2, 2012
10.0
HIGHCVSS 2.0
EPSS 13.88%
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.
Affected products
Remediation
Red Hat statement
A previous statement by Red Hat related to this CVE, prior to August 2019, said that Apache Struts 2 is not included in any Red Hat products. This earlier statement was incorrect. While Struts 2 is not actively compiled, shipped, used, or enabled in any Red Hat provided final products, and does not cause any vulnerability in the product, struts2-core jars have been included in some products' source code packages. The inclusion was part of an import of the Google Guice repository, which includes struts2-core. Customers that build artefacts from our source code could be at risk. Red Hat will remove these artefacts from source code in future releases. The products that included the Struts 2 artefacts in their source jars: Fuse Service Works 6.0.0 Single Sign On 7.3.0+ If you have used the source package from one of these products to build artefacts on your system, you should do the following to remove potentially affected jars: 1. Run 'find . -name struts2*.jar' under the source location 2. Remove any files found This will not affect the product, as the jar is included with the source of google-guice, but no functionality requiring struts2 is implemented.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (22 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 13.88% (0.13880) | 96.42th | v5 (v2026.06.15) |
| Jun 15, 2026 | 14.03% (0.14032) | 96.08th | v5 (v2026.06.15) |
| Apr 7, 2026 | 11.11% (0.11109) | 93.44th | v4 (v2025.03.14) |
| Mar 17, 2026 | 14.00% (0.13997) | 94.24th | v4 (v2025.03.14) |
| Feb 11, 2026 | 32.15% (0.32145) | 96.71th | v4 (v2025.03.14) |
| Jan 22, 2026 | 16.42% (0.16422) | 94.67th | v4 (v2025.03.14) |
| Sep 16, 2025 | 25.90% (0.25898) | 96.08th | v4 (v2025.03.14) |
| Sep 15, 2025 | 55.56% (0.55565) | 98.00th | v4 (v2025.03.14) |
| Aug 7, 2025 | 64.34% (0.64345) | 98.36th | v4 (v2025.03.14) |
| Jul 9, 2025 | 66.94% (0.66942) | 98.44th | v4 (v2025.03.14) |
| Jun 1, 2025 | 75.60% (0.75597) | 98.83th | v4 (v2025.03.14) |
| May 26, 2025 | 58.57% (0.58573) | 98.06th | v4 (v2025.03.14) |
| May 15, 2025 | 48.65% (0.48653) | 97.59th | v4 (v2025.03.14) |
| Mar 30, 2025 | 60.31% (0.60311) | 98.11th | v4 (v2025.03.14) |
| Mar 29, 2025 | 73.43% (0.73428) | 98.42th | v4 (v2025.03.14) |
| Mar 17, 2025 | 60.31% (0.60311) | 98.08th | v4 (v2025.03.14) |
| Dec 17, 2024 | 25.42% (0.25425) | 96.69th | v3 (v2023.03.01) |
| Jul 10, 2024 | 1.89% (0.01889) | 88.61th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.89% (0.01889) | 86.60th | v3 (v2023.03.01) |
| Mar 6, 2023 | 11.79% (0.11792) | 95.16th | v2 (v2022.01.01) |
| Apr 1, 2022 | 11.79% (0.11792) | 94.78th | v2 (v2022.01.01) |
| Feb 4, 2022 | 11.79% (0.11792) | 89.18th | v2 (v2022.01.01) |
References (12)
- http://jvn.jp/en/jp/JVN79099262/index.html third-party-advisoryx_refsource_JVNThird Party AdvisoryVDB Entry
- http://jvndb.jvn.jp/jvndb/JVNDB-2012-000012 third-party-advisoryx_refsource_JVNDBThird Party AdvisoryVDB Entry
- http://struts.apache.org/2.3.1.2/docs/s2-007.html x_refsource_CONFIRMVendor Advisory
- https://access.redhat.com/security/cve/CVE-2012-0838 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=799980 Issue Tracking
- https://github.com/advisories/GHSA-mwrx-hx6x-3hhv Advisory
- https://github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e
- https://github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b
- https://github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892
- https://issues.apache.org/jira/browse/WW-3668 x_refsource_CONFIRMIssue TrackingVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2012-0838
- https://www.cve.org/CVERecord?id=CVE-2012-0838
| Link | Providers | Tags |
|---|---|---|
| http://jvn.jp/en/jp/JVN79099262/index.html | third-party-advisoryx_refsource_JVNThird Party AdvisoryVDB Entry | |
| http://jvndb.jvn.jp/jvndb/JVNDB-2012-000012 | third-party-advisoryx_refsource_JVNDBThird Party AdvisoryVDB Entry | |
| http://struts.apache.org/2.3.1.2/docs/s2-007.html | x_refsource_CONFIRMVendor Advisory | |
| https://access.redhat.com/security/cve/CVE-2012-0838 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=799980 | Issue Tracking | |
| https://github.com/advisories/GHSA-mwrx-hx6x-3hhv | Advisory | |
| https://github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e | ||
| https://github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b | ||
| https://github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892 | ||
| https://issues.apache.org/jira/browse/WW-3668 | x_refsource_CONFIRMIssue TrackingVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2012-0838 | ||
| https://www.cve.org/CVERecord?id=CVE-2012-0838 |
Change history (0)
No recorded changes yet.