{"schemaVersion":3,"id":"CVE-2012-0838","aliases":["GHSA-mwrx-hx6x-3hhv"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2012-03-02T22:00:00.000Z","modified":"2024-08-06T18:38:14.801Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.13687,"percentile":0.9646,"severity":"medium","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.1930000000000015,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.1388},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.13687,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.13687,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.13687,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.13687,"percentile":0.9646}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.1388,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.13687,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.13687,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.13687,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.13687,"percentile":0.9646}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"apache","product":"struts","name":"struts","label":"struts","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, ≤ 2.2.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, ≤ 2.2.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-struts","label":"Apache Struts","category":"framework"}},"hubHref":"/vendor/apache/struts"},{"vendor":"org.apache.struts","product":"struts2-core","name":"org.apache.struts:struts2-core","label":"struts2-core","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.struts/struts2-core","purlType":"maven","versions":[{"text":"< 2.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.3.1","eol":null,"hubHref":null},{"vendor":"org.apache.struts.xwork","product":"xwork-core","name":"org.apache.struts.xwork:xwork-core","label":"xwork-core","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.struts.xwork/xwork-core","purlType":"maven","versions":[{"text":"< 2.2.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.3.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://jvndb.jvn.jp/jvndb/JVNDB-2012-000012","label":"jvndb.jvn.jp/jvndb/JVNDB-2012-000012","hostname":"jvndb.jvn.jp","tags":["Third Party Advisory","X Refsource JVNDB","VDB Entry","WEB"]},{"url":"http://struts.apache.org/2.3.1.2/docs/s2-007.html","label":"struts.apache.org/2.3.1.2/docs/s2-007.html","hostname":"struts.apache.org","tags":["X Refsource CONFIRM","Vendor Advisory","WEB"]},{"url":"https://issues.apache.org/jira/browse/WW-3668","label":"issues.apache.org/jira/browse/WW-3668","hostname":"issues.apache.org","tags":["X Refsource CONFIRM","Issue Tracking","Vendor Advisory","WEB"]},{"url":"http://jvn.jp/en/jp/JVN79099262/index.html","label":"jvn.jp/en/jp/JVN79099262/index.html","hostname":"jvn.jp","tags":["Third Party Advisory","X Refsource JVN","VDB Entry","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-0838","label":"nvd.nist.gov/vuln/detail/CVE-2012-0838","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e","label":"github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b","label":"github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892","label":"github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/struts","label":"github.com/apache/struts","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2012-03-02T22:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T18:38:14.801Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T16:10:01.712Z","stale":false,"partial":false}}