{"id":"CVE-2012-1592","aliases":["EUVD-2022-1679","GHSA-8m5q-crqq-6pmf"],"status":"published","title":"Unrestricted Upload of File with Dangerous Type in Apache Struts2","description":"A local code execution issue exists in Apache Struts2 when processing malformed XSLT files, which could let a malicious user upload and execute arbitrary files.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.2855,"percentile":0.98145,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-434"],"published":"2019-12-05T20:57:22Z","modified":"2026-06-16T23:39:49Z","exploits":[{"source":"exploitdb","id":"EDB-37009","title":"Apache Struts 2.0 - 'XSLTResult.java' Arbitrary File Upload","type":"webapps","platform":"java","date":"2012-03-23","verified":true,"url":"https://www.exploit-db.com/exploits/37009"}],"fixes":[{"ecosystem":"Maven","package":"org.apache.struts:struts2-core","fixed_in":["2.5.22"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.apache.struts:struts2-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0"},{"fixed":"2.5.22"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.apache.struts:struts2-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0"},{"fixed":"2.5.22"}]}],"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.12","2.3.14","2.3.14.1","2.3.14.2","2.3.14.3","2.3.15","2.3.15.1","2.3.15.2","2.3.15.3","2.3.16","2.3.16.1","2.3.16.2","2.3.16.3","2.3.20","2.3.20.1","2.3.20.3","2.3.24","2.3.24.1","2.3.24.3","2.3.28","2.3.28.1","2.3.29","2.3.3","2.3.30","2.3.31","2.3.32","2.3.33","2.3.34","2.3.35","2.3.36","2.3.37","2.3.4","2.3.4.1","2.3.7","2.3.8","2.5","2.5-BETA1","2.5-BETA2","2.5-BETA3","2.5.1","2.5.10","2.5.10.1","2.5.12","2.5.13","2.5.14","2.5.14.1","2.5.16","2.5.17","2.5.18","2.5.2","2.5.20","2.5.5","2.5.8"]}],"products":[{"vendor":"apache","product":"struts"},{"vendor":"libstruts1.2-java","product":"libstruts1.2-java"}],"references":[{"url":"https://security-tracker.debian.org/tracker/CVE-2012-1592","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1592","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","web"]},{"url":"https://access.redhat.com/security/cve/cve-2012-1592","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2012/03/28/12","tags":["x_refsource_MISC","x_transferred","Mailing List","Third Party Advisory"]},{"url":"https://lists.apache.org/thread.html/r348ed455a140273c40b974f0615dee692f7c9b26c6de2118b4280ef2%40%3Cissues.struts.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/r93c4e3f6cb138cd117c739714f07e47af547183ba099ba46be2b2a5b%40%3Cissues.struts.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/r593ebb2f4c95b064e6901fd273eff256c493db952bdb484395948ffc%40%3Cissues.struts.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-1592","tags":["advisory"]},{"url":"https://lists.apache.org/thread.html/r348ed455a140273c40b974f0615dee692f7c9b26c6de2118b4280ef2@%3Cissues.struts.apache.org%3E","tags":["web"]},{"url":"https://lists.apache.org/thread.html/r593ebb2f4c95b064e6901fd273eff256c493db952bdb484395948ffc@%3Cissues.struts.apache.org%3E","tags":["web"]},{"url":"https://lists.apache.org/thread.html/r93c4e3f6cb138cd117c739714f07e47af547183ba099ba46be2b2a5b@%3Cissues.struts.apache.org%3E","tags":["web"]},{"url":"https://github.com/apache/struts/blob/master/core/src/main/resources/struts-default.xml#L39-L76","tags":["web"]},{"url":"https://issues.apache.org/jira/browse/WW-5055","tags":["web"]},{"url":"https://seclists.org/bugtraq/2012/Mar/110","tags":["web"]},{"url":"https://struts.apache.org/security/#internal-security-mechanism","tags":["web"]},{"url":"https://www.openwall.com/lists/oss-security/2012/03/28/12","tags":["web"]},{"url":"https://github.com/advisories/GHSA-8m5q-crqq-6pmf"},{"url":"https://github.com/apache/struts","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2012-1592","description":"A local code execution issue exists in Apache Struts2 when processing malformed XSLT files, which could let a malicious user upload and execute arbitrary files.","status":"published","published":"2019-12-05T20:57:22Z","modified":"2024-08-06T19:01:02.75Z","updated_at":"2026-11-02T14:34:52.27879Z"}],"euvd":[{"id":"EUVD-2022-1679","description":"A local code execution issue exists in Apache Struts2 when processing malformed XSLT files, which could let a malicious user upload and execute arbitrary files.","status":"published","published":"2019-12-05T20:57:22Z","modified":"2024-08-06T19:01:02Z","updated_at":"2026-11-03T01:56:17.382633Z"}],"ghsa":[{"id":"GHSA-8m5q-crqq-6pmf","title":"Unrestricted Upload of File with Dangerous Type in Apache Struts2","description":"A local code execution issue exists in Apache Struts2 when processing malformed XSLT files, which could let a malicious user upload and execute arbitrary files. A patch exists as of version 2.5.22.","status":"published","published":"2022-04-23T00:40:23Z","modified":"2023-02-13T17:20:01Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T14:36:44.81167Z"}],"nvd":[{"id":"CVE-2012-1592","description":"A local code execution issue exists in Apache Struts2 when processing malformed XSLT files, which could let a malicious user upload and execute arbitrary files.","status":"published","published":"2019-12-05T21:15:11.427Z","modified":"2026-06-16T23:39:49.353Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T14:02:18.043773Z"}],"osv":[{"id":"GHSA-8m5q-crqq-6pmf","title":"Unrestricted Upload of File with Dangerous Type in Apache Struts2","description":"A local code execution issue exists in Apache Struts2 when processing malformed XSLT files, which could let a malicious user upload and execute arbitrary files. A patch exists as of version 2.5.22.","status":"published","published":"2022-04-23T00:40:23Z","modified":"2023-11-08T03:57:04.028343Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T15:46:42.437513Z"}]}}
