{"cve":"CVE-2012-0838","nvd":{"published":"2012-03-02T22:55:01.337","modified":"2026-06-16T23:38:21.580","status":"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.","cvss_v4":null,"cvss_v3":null,"cwes":["CWE-20"],"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","http://jvn.jp/en/jp/JVN79099262/index.html"],"products":["apache:struts"],"source":"nvd","synced_at":"2026-10-19T19:59:31.623151214+00:00"},"epss":{"cve":"CVE-2012-0838","score":0.13687,"percentile":0.96492,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mwrx-hx6x-3hhv","url":"https://osv.dev/vulnerability/GHSA-mwrx-hx6x-3hhv","summary":"Apache Struts Code injection due to conversion error","modified":"2024-12-05T05:48:30.729202Z","packages":[{"ecosystem":"Maven","name":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","ranges":["<2.2.3.1"],"fixed":["2.2.3.1"]},{"ecosystem":"Maven","name":"org.apache.struts.xwork:xwork-core","purl":"pkg:maven/org.apache.struts.xwork/xwork-core","ranges":["<2.2.3.1"],"fixed":["2.2.3.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}