{"id":"CVE-2013-2115","aliases":["EUVD-2022-3001","GHSA-7ghm-rpc7-p7g5"],"status":"published","title":"Code injection in Apache Struts","description":"Apache Struts 2 before 2.3.14.2 allows remote attackers to execute arbitrary OGNL code via a crafted request that is not properly handled when using the includeParams attribute in the (1) URL or (2) A tag. NOTE: this issue is due to an incomplete fix for CVE-2013-1966.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.74636,"percentile":0.99502,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-94"],"published":"2013-07-10T19:00:00Z","modified":"2026-06-16T23:52:46Z","exploits":[{"source":"exploitdb","id":"EDB-25980","title":"Apache Struts - includeParams Remote Code Execution (Metasploit)","type":"remote","platform":"multiple","date":"2013-06-05","verified":true,"url":"https://www.exploit-db.com/exploits/25980"},{"source":"metasploit","id":"exploit/multi/http/struts_include_params","title":"Apache Struts includeParams Remote Code Execution","type":"exploit","platform":"Java,Linux,Windows","date":"2013-05-24","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/multi/http/struts_include_params"}],"fixes":[{"ecosystem":"Maven","package":"org.apache.struts:struts2-core","fixed_in":["2.3.14.2"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"org.apache.struts.xwork:xwork-core","fixed_in":["2.3.14.2"],"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.14.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.apache.struts.xwork:xwork-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.3.14.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.apache.struts:struts2-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.3.14.2"}]}],"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.3","2.3.4","2.3.4.1","2.3.7","2.3.8"]},{"source":"osv","ecosystem":"Maven","package":"org.apache.struts.xwork:xwork-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.3.14.2"}]}],"versions":["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.3","2.3.4","2.3.4.1","2.3.7","2.3.8"]}],"products":[{"vendor":"apache","product":"struts"}],"references":[{"url":"http://www.securityfocus.com/bid/60167","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=967656","tags":["x_refsource_MISC","x_transferred","Issue Tracking","web"]},{"url":"http://struts.apache.org/development/2.x/docs/s2-014.html","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","web"]},{"url":"https://cwiki.apache.org/confluence/display/WW/S2-014","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2013-2115","tags":["advisory"]},{"url":"https://cwiki.apache.org/confluence/display/WW/S2-013","tags":["web"]},{"url":"https://github.com/apache/struts/commit/d7804297e319c7a12245e1b536e565fcea6d650","tags":["web"]},{"url":"https://github.com/apache/struts/commit/d934c6e7430b7b98e43a0a085a2304bd31a75c3d","tags":["web"]},{"url":"https://github.com/apache/struts/commit/ea96d18d0f75c390d2595648efa3563785c272c6","tags":["web"]},{"url":"https://github.com/apache/struts/commit/fed4f8e8a4ec69b5e7612b92d8ce3e476680474","tags":["web"]},{"url":"https://issues.apache.org/jira/browse/WW-4063","tags":["web"]},{"url":"https://web.archive.org/web/20140212000331/http://www.securityfocus.com/bid/60167","tags":["web"]},{"url":"https://github.com/advisories/GHSA-7ghm-rpc7-p7g5"},{"url":"https://github.com/apache/struts","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2013-2115","description":"Apache Struts 2 before 2.3.14.2 allows remote attackers to execute arbitrary OGNL code via a crafted request that is not properly handled when using the includeParams attribute in the (1) URL or (2) A tag. NOTE: this issue is due to an incomplete fix for CVE-2013-1966.","status":"published","published":"2013-07-10T19:00:00Z","modified":"2024-09-16T19:14:04.038Z","updated_at":"2026-11-02T14:34:56.19172Z"}],"euvd":[{"id":"EUVD-2022-3001","description":"Apache Struts 2 before 2.3.14.2 allows remote attackers to execute arbitrary OGNL code via a crafted request that is not properly handled when using the includeParams attribute in the (1) URL or (2) A tag. NOTE: this issue is due to an incomplete fix for CVE-2013-1966.","status":"published","published":"2013-07-10T19:00:00Z","modified":"2024-09-16T19:14:04Z","updated_at":"2026-11-03T00:55:25.259735Z"}],"ghsa":[{"id":"GHSA-7ghm-rpc7-p7g5","title":"Code injection in Apache Struts","description":"A vulnerability introduced by forcing parameter inclusion in the URL and Anchor Tag allows remote command execution, session access and manipulation and XSS attacks.\n\nboth the s:url and s:a tag provide an includeParams attribute.\n\nThe main scope of that attribute is to understand whether includes http request parameter or not.\n\nThe allowed values of includeParams are:\n\n    none - include no parameters in the URL (default)\n    get - include only GET parameters in the URL\n    all - include both GET and POST parameters in the URL\n\nA request that included a specially crafted request parameter could be used to inject arbitrary OGNL code into the stack, afterward used as request parameter of an URL or A tag , which will cause a further evaluation.\n\nThe second evaluation happens when the URL/A tag tries to resolve every parameters present in the original request.\nThis lets malicious users put arbitrary OGNL statements into any request parameter (not necessarily managed by the code) and have it evaluated as an OGNL expression to enable method execution and execute arbitrary methods, bypassing Struts and OGNL library protections.\n\nThe issue was originally addressed by Struts 2.3.14.1 and Security Announcement [S2-013](https://cwiki.apache.org/confluence/display/WW/S2-013). However, the solution introduced with 2.3.14.1 did not address all possible attack vectors, such that every version of Struts 2 before 2.3.14.2 is still vulnerable to such attacks.","status":"published","published":"2022-05-13T01:16:08Z","modified":"2023-12-27T22:16:08Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:37:28.753349Z"}],"nvd":[{"id":"CVE-2013-2115","description":"Apache Struts 2 before 2.3.14.2 allows remote attackers to execute arbitrary OGNL code via a crafted request that is not properly handled when using the includeParams attribute in the (1) URL or (2) A tag. NOTE: this issue is due to an incomplete fix for CVE-2013-1966.","status":"published","published":"2013-07-10T19:55:04.77Z","modified":"2026-06-16T23:52:46.44Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":9.3,"vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:02:31.592595Z"}],"osv":[{"id":"GHSA-7ghm-rpc7-p7g5","title":"Code injection in Apache Struts","description":"A vulnerability introduced by forcing parameter inclusion in the URL and Anchor Tag allows remote command execution, session access and manipulation and XSS attacks.\n\nboth the s:url and s:a tag provide an includeParams attribute.\n\nThe main scope of that attribute is to understand whether includes http request parameter or not.\n\nThe allowed values of includeParams are:\n\n    none - include no parameters in the URL (default)\n    get - include only GET parameters in the URL\n    all - include both GET and POST parameters in the URL\n\nA request that included a specially crafted request parameter could be used to inject arbitrary OGNL code into the stack, afterward used as request parameter of an URL or A tag , which will cause a further evaluation.\n\nThe second evaluation happens when the URL/A tag tries to resolve every parameters present in the original request.\nThis lets malicious users put arbitrary OGNL statements into any request parameter (not necessarily managed by the code) and have it evaluated as an OGNL expression to enable method execution and execute arbitrary methods, bypassing Struts and OGNL library protections.\n\nThe issue was originally addressed by Struts 2.3.14.1 and Security Announcement [S2-013](https://cwiki.apache.org/confluence/display/WW/S2-013). However, the solution introduced with 2.3.14.1 did not address all possible attack vectors, such that every version of Struts 2 before 2.3.14.2 is still vulnerable to such attacks.","status":"published","published":"2022-05-13T01:16:08Z","modified":"2024-02-16T08:09:37.605203Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:41.002603Z"}]}}
