Description
Apache Struts 2.3.19 to 2.3.20.2, 2.3.21 to 2.3.24.1, and 2.3.25 to 2.3.28, when Dynamic Method Invocation is enabled, allow remote attackers to execute arbitrary code via vectors related to an ! (exclamation mark) operator to the REST Plugin.
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.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Metasploit 1 module
-
Apache Struts REST Plugin With Dynamic Method Invocation Remote Code Execution
exploit/multi/http/struts_dmi_rest_exec
Exploit-DB 2
- Apache Struts - REST Plugin With Dynamic Method Invocation Remote Code Execution EDB-43382 · remote · Jun 6, 2017
- Apache Struts - REST Plugin With Dynamic Method Invocation Remote Code Execution (Metasploit) EDB-39919 · remote · Jun 10, 2016 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.struts:struts2-core | >= 2.3.19, < 2.3.20.3 | 2.3.20.3 | GHSA-mmj6-cjj4-hpr5 |
| Maven | org.apache.struts:struts2-core | >= 2.3.21, < 2.3.24.3 | 2.3.24.3 | GHSA-mmj6-cjj4-hpr5 |
| Maven | org.apache.struts:struts2-core | >= 2.3.25, < 2.3.28.1 | 2.3.28.1 | GHSA-mmj6-cjj4-hpr5 |
References
- 1036017 vdb-entry
- 39919 exploit
- http://struts.apache.org/docs/s2-033.html
- http://www-01.ibm.com/support/docview.wss?uid=swg21987854
- 90960 vdb-entry