Description
The DebuggingInterceptor component in Apache Struts before 2.3.1.1, when developer mode is used, allows remote attackers to execute arbitrary commands via unspecified vectors. NOTE: the vendor characterizes this behavior as not "a security vulnerability itself.
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 Developer Mode OGNL Execution
exploit/multi/http/struts_dev_mode
Exploit-DB 2
- Apache Struts - Developer Mode OGNL Execution (Metasploit) EDB-31434 · remote · Feb 5, 2014 · verified
- Apache Struts 2 < 2.3.1 - Multiple Vulnerabilities EDB-18329 · webapps · Jan 6, 2012 · verified
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.3.1.1 - Remote Code Execution http/cves/2012/CVE-2012-0394.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.struts.xwork:xwork-core | < 2.3.18 | 2.3.18 | GHSA-hmvj-gc9q-mg9p |
References
- http://struts.apache.org/2.x/docs/version-notes-2311.html
- http://struts.apache.org/2.x/docs/s2-008.html
- 18329 exploit
- 20120105 SEC Consult SA-20120104-0 :: Multiple critical vulnerabilities in Apache Struts2 mailing-list
- 31434 exploit
- https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt
- 78276 vdb-entry