Description
Apache Struts 2.0.0 through 2.3.15 allows remote attackers to execute arbitrary OGNL expressions via a parameter with a crafted (1) action:, (2) redirect:, or (3) redirectAction: prefix.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Apache Struts 2 DefaultActionMapper Prefixes OGNL Code Execution
exploit/multi/http/struts_default_action_mapper
Exploit-DB 2
- Apache Struts2 2.0.0 < 2.3.15 - Prefixed Parameters OGNL Injection EDB-44583 · webapps · Jan 14, 2014 · verified
- Apache Struts 2 - DefaultActionMapper Prefixes OGNL Code Execution (Metasploit) EDB-27135 · remote · Jul 27, 2013 · verified
GitHub 1 repository
-
nth347/struts2-CVE-2013-2251 ★ 0 · Aug 4, 2023
Vulnerable environment of CVE-2013-2251 (S2-016) for testing
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Apache Struts 2 - DefaultActionMapper Prefixes OGNL Code Execution http/cves/2013/CVE-2013-2251.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.struts:struts2-core | < 2.3.15.1 | 2.3.15.1 | GHSA-47qp-8v9g-39hp |
References
- http://www.fujitsu.com/global/support/software/security/products-f/interstage-bpm-analytics-201301e.html
- http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html
- apache-archiva-ognl-command-exec(90392) vdb-entry
- 20131013 Apache Software Foundation A Subsite Remote command execution mailing-list
- http://cxsecurity.com/issue/WLB-2014010087
- 20131023 Apache Struts 2 Command Execution Vulnerability in Multiple Cisco Products vendor-advisory
- http://struts.apache.org/release/2.3.x/docs/s2-016.html
- http://archiva.apache.org/security.html
- 98445 vdb-entry
- 1032916 vdb-entry
- 61189 vdb-entry
- 1029184 vdb-entry
- 64758 vdb-entry
- http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
- [oss-security] 20140114 Re: CVE Request: Apache Archiva Remote Command Execution 0day mailing-list
- http://packetstormsecurity.com/files/159629/Apache-Struts-2-Remote-Code-Execution.html