{"schemaVersion":3,"id":"CVE-2012-4386","aliases":["GHSA-2rvh-q539-q33v"],"status":"published","duplicateOf":null,"title":null,"description":"The token check mechanism in Apache Struts 2.0.0 through 2.3.4 does not properly validate the token name configuration parameter, which allows remote attackers to perform cross-site request forgery (CSRF) attacks by setting the token name configuration parameter to a session attribute.","dates":{"published":"2012-09-05T23:00:00.000Z","modified":"2024-08-06T20:35:09.272Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.8,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0336,"percentile":0.88585,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0336},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0336,"percentile":0.88585}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0336,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0336,"percentile":0.88585}]},"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-352","name":"Cross-Site Request Forgery (CSRF)","description":"The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.","type":"weakness","status":"Stable","abstraction":"Compound","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/352.html"}],"affected":[{"vendor":"apache","product":"struts","name":"struts","label":"struts","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0.0","noFixRecorded":false,"fixedIn":null},{"text":"2.0.1","noFixRecorded":false,"fixedIn":null},{"text":"2.0.2","noFixRecorded":false,"fixedIn":null},{"text":"2.0.3","noFixRecorded":false,"fixedIn":null},{"text":"2.0.4","noFixRecorded":false,"fixedIn":null},{"text":"2.0.5","noFixRecorded":false,"fixedIn":null},{"text":"2.0.6","noFixRecorded":false,"fixedIn":null},{"text":"2.0.7","noFixRecorded":false,"fixedIn":null},{"text":"2.0.8","noFixRecorded":false,"fixedIn":null},{"text":"2.0.9","noFixRecorded":false,"fixedIn":null},{"text":"2.0.10","noFixRecorded":false,"fixedIn":null},{"text":"2.0.11","noFixRecorded":false,"fixedIn":null},{"text":"2.0.11.1","noFixRecorded":false,"fixedIn":null},{"text":"2.0.11.2","noFixRecorded":false,"fixedIn":null},{"text":"2.0.12","noFixRecorded":false,"fixedIn":null},{"text":"2.0.13","noFixRecorded":false,"fixedIn":null},{"text":"2.0.14","noFixRecorded":false,"fixedIn":null},{"text":"2.1.0","noFixRecorded":false,"fixedIn":null},{"text":"2.1.1","noFixRecorded":false,"fixedIn":null},{"text":"2.1.2","noFixRecorded":false,"fixedIn":null},{"text":"2.1.3","noFixRecorded":false,"fixedIn":null},{"text":"2.1.4","noFixRecorded":false,"fixedIn":null},{"text":"2.1.5","noFixRecorded":false,"fixedIn":null},{"text":"2.1.6","noFixRecorded":false,"fixedIn":null},{"text":"2.1.8","noFixRecorded":false,"fixedIn":null},{"text":"2.1.8.1","noFixRecorded":false,"fixedIn":null},{"text":"2.2.1","noFixRecorded":false,"fixedIn":null},{"text":"2.2.1.1","noFixRecorded":false,"fixedIn":null},{"text":"2.2.3","noFixRecorded":false,"fixedIn":null},{"text":"2.2.3.1","noFixRecorded":false,"fixedIn":null},{"text":"2.3.1","noFixRecorded":false,"fixedIn":null},{"text":"2.3.1.1","noFixRecorded":false,"fixedIn":null},{"text":"2.3.1.2","noFixRecorded":false,"fixedIn":null},{"text":"2.3.3","noFixRecorded":false,"fixedIn":null},{"text":"2.3.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.0.6 | 2.0.7 | 2.0.8 | 2.0.9 | 2.0.10 | 2.0.11 | 2.0.11.1 | 2.0.11.2 | 2.0.12 | 2.0.13 | 2.0.14 | 2.1.0 | 2.1.1 | 2.1.2 | 2.1.3 | 2.1.4 | 2.1.5 | 2.1.6 | 2.1.8 | 2.1.8.1 | 2.2.1 | 2.2.1.1 | 2.2.3 | 2.2.3.1 | 2.3.1 | 2.3.1.1 | 2.3.1.2 | 2.3.3 | 2.3.4","eol":{"isEol":true,"eolDate":null,"matchMethod":"cpe","cycle":{"name":"2.0","label":"2.0","eolFrom":null,"isLts":false,"isMaintained":true,"latestVersion":"2.0.14"},"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.0.0, < 2.3.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.3.4.1","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://issues.apache.org/jira/browse/WW-3858","label":"issues.apache.org/jira/browse/WW-3858","hostname":"issues.apache.org","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/78182","label":"exchange.xforce.ibmcloud.com/vulnerabilities/78182","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF","WEB"]},{"url":"http://www.openwall.com/lists/oss-security/2012/09/01/5","label":"www.openwall.com/lists/oss-security/2012/09/01/5","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"http://secunia.com/advisories/50420","label":"secunia.com/advisories/50420","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Vendor Advisory"]},{"url":"http://www.securityfocus.com/bid/55346","label":"www.securityfocus.com/bid/55346","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"http://struts.apache.org/2.x/docs/s2-010.html","label":"struts.apache.org/2.x/docs/s2-010.html","hostname":"struts.apache.org","tags":["X Refsource CONFIRM","Vendor Advisory","WEB"]},{"url":"http://www.openwall.com/lists/oss-security/2012/09/01/4","label":"www.openwall.com/lists/oss-security/2012/09/01/4","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4386","label":"nvd.nist.gov/vuln/detail/CVE-2012-4386","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2012-09-05T23:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T20:35:09.272Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:40:56.194Z","stale":false,"partial":false}}