{"id":"GHSA-47qp-8v9g-39hp","summary":"Code injection in Apache Struts","details":"The Struts 2 DefaultActionMapper supports a method for short-circuit navigation state changes by prefixing parameters with \"action:\" or \"redirect:\", followed by a desired navigational target expression. This mechanism was intended to help with attaching navigational information to buttons within forms.\n\nIn Struts 2 before 2.3.15.1 the information following \"action:\", \"redirect:\" or \"redirectAction:\" is not properly sanitized. Since said information will be evaluated as OGNL expression against the value stack, this introduces the possibility to inject server side code.","aliases":["CVE-2013-2251"],"modified":"2025-10-22T19:41:41.548096Z","published":"2022-05-13T01:14:26Z","database_specific":{"github_reviewed_at":"2022-11-03T19:11:13Z","nvd_published_at":"2013-07-20T03:37:00Z","cwe_ids":["CWE-20","CWE-74"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2013-2251"},{"type":"WEB","url":"https://github.com/apache/struts/commit/3cfe34fefedcf0fdcfcb061c0aea34a715b7de6"},{"type":"WEB","url":"https://github.com/apache/struts/commit/630e1ba065a8215c4e9ac03bfb09be9d655c2b6e"},{"type":"WEB","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/90392"},{"type":"PACKAGE","url":"https://github.com/apache/struts"},{"type":"WEB","url":"https://issues.apache.org/jira/browse/WW-4140"},{"type":"WEB","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2013-2251"},{"type":"WEB","url":"http://archiva.apache.org/security.html"},{"type":"WEB","url":"http://cxsecurity.com/issue/WLB-2014010087"},{"type":"WEB","url":"http://packetstormsecurity.com/files/159629/Apache-Struts-2-Remote-Code-Execution.html"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2013/Oct/96"},{"type":"WEB","url":"http://seclists.org/oss-sec/2014/q1/89"},{"type":"WEB","url":"http://struts.apache.org/release/2.3.x/docs/s2-016.html"},{"type":"WEB","url":"http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20131023-struts2"},{"type":"WEB","url":"http://www.fujitsu.com/global/support/software/security/products-f/interstage-bpm-analytics-201301e.html"},{"type":"WEB","url":"http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html"},{"type":"WEB","url":"http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html"}],"affected":[{"package":{"name":"org.apache.struts:struts2-core","ecosystem":"Maven","purl":"pkg:maven/org.apache.struts/struts2-core"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.15.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.12","2.3.14","2.3.14.1","2.3.14.2","2.3.14.3","2.3.15","2.3.3","2.3.4","2.3.4.1","2.3.7","2.3.8"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-47qp-8v9g-39hp/GHSA-47qp-8v9g-39hp.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H"}]}