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 method: prefix, related to chained expressions.
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 Dynamic Method Invocation Remote Code Execution
exploit/multi/http/struts_dmi_exec
Exploit-DB 1
- Apache Struts - Dynamic Method Invocation Remote Code Execution (Metasploit) EDB-39756 · remote · May 2, 2016 · 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 S2-032 Struts - Remote Code Execution http/cves/2016/CVE-2016-3081.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.19, < 2.3.20.3 | 2.3.20.3 | GHSA-8c6j-ffmf-q6vm |
| Maven | org.apache.struts:struts2-core | >= 2.3.21, < 2.3.24.3 | 2.3.24.3 | GHSA-8c6j-ffmf-q6vm |
| Maven | org.apache.struts:struts2-core | >= 2.3.25, < 2.3.28.1 | 2.3.28.1 | GHSA-8c6j-ffmf-q6vm |
Advisories 1
- WID-SEC-2026-3852 Apache Struts: Mehrere Schwachstellen ermöglichen Ausführen von beliebigem Programmcode mit den Rechten des Dienstes BSI CERT-Bund (WID) · Oct 11, 2026
References
- 1035665 vdb-entry
- https://struts.apache.org/docs/s2-032.html
- http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20160527-01-struts2-en
- http://www.oracle.com/technetwork/security-advisory/cpujul2016-2881720.html
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- http://www.rapid7.com/db/modules/exploit/linux/http/struts_dmi_exec
- 39756 exploit
- 91787 vdb-entry
- http://packetstormsecurity.com/files/136856/Apache-Struts-2.3.28-Dynamic-Method-Invocation-Remote-Code-Execution.html
- 87327 vdb-entry
- http://www.rapid7.com/db/modules/exploit/multi/http/struts_dmi_exec