{"id":"CVE-2012-4386","aliases":["EUVD-2022-2048","GHSA-2rvh-q539-q33v"],"status":"published","title":"Cross-Site Request Forgery in Apache Struts","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.","severity":{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0336,"percentile":0.88801,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-352"],"published":"2012-09-05T23:00:00Z","modified":"2026-06-16T23:44:55Z","fixes":[{"ecosystem":"Maven","package":"org.apache.struts:struts2-core","fixed_in":["2.3.4.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.apache.struts:struts2-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.3.4.1"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.apache.struts:struts2-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.3.4.1"}]}],"versions":["2.0.11","2.0.11.1","2.0.11.2","2.0.12","2.0.14","2.0.5","2.0.6","2.0.8","2.0.9","2.1.2","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"]}],"products":[{"vendor":"apache","product":"struts"}],"references":[{"url":"https://issues.apache.org/jira/browse/WW-3858","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/78182","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2012/09/01/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://secunia.com/advisories/50420","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.securityfocus.com/bid/55346","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://struts.apache.org/2.x/docs/s2-010.html","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2012/09/01/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4386","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-2rvh-q539-q33v"}],"sources":{"cve":[{"id":"CVE-2012-4386","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.","status":"published","published":"2012-09-05T23:00:00Z","modified":"2024-08-06T20:35:09.272Z","updated_at":"2026-11-02T14:34:51.584538Z"}],"euvd":[{"id":"EUVD-2022-2048","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.","status":"published","published":"2012-09-05T23:00:00Z","modified":"2024-08-06T20:35:09Z","updated_at":"2026-11-03T01:56:07.912368Z"}],"ghsa":[{"id":"GHSA-2rvh-q539-q33v","title":"Cross-Site Request Forgery in Apache Struts","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.","status":"published","published":"2022-05-17T01:42:17Z","modified":"2023-08-14T22:56:16Z","cwes":["CWE-352"],"updated_at":"2026-11-02T14:36:59.456342Z"}],"nvd":[{"id":"CVE-2012-4386","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.","status":"published","published":"2012-09-05T23:55:02.663Z","modified":"2026-06-16T23:44:55.21Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-352"],"updated_at":"2026-11-02T14:02:15.643902Z"}],"osv":[{"id":"GHSA-2rvh-q539-q33v","title":"Cross-Site Request Forgery in Apache Struts","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.","status":"published","published":"2022-05-17T01:42:17Z","modified":"2024-12-07T05:34:09.519684Z","cwes":["CWE-352"],"updated_at":"2026-11-02T15:46:34.700741Z"}]}}
