Apache Struts
Apache Struts Command Injection Vulnerability
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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 2.3.19, < 2.3.20.3
Fixed in 2.3.20.3
from GitHub Security Advisory GHSA-8c6j-ffmf-q6vm
- >= 2.3.21, < 2.3.24.3
Fixed in 2.3.24.3
from GitHub Security Advisory GHSA-8c6j-ffmf-q6vm
- >= 2.3.25, < 2.3.28.1
Fixed in 2.3.28.1
from GitHub Security Advisory GHSA-8c6j-ffmf-q6vm
Mitigation
Upgrade org.apache.struts:struts2-core to 2.3.20.3 or later.
Upgrade org.apache.struts:struts2-core to 2.3.24.3 or later.
Upgrade org.apache.struts:struts2-core to 2.3.28.1 or later.
Timeline
Days relative to CVE publicationFirst public PoC 4.1 days after publication; added to CISA KEV 10.5 years after publication. First PoC: Metasploit exploit: Apache Struts Dynamic Method Invocation Remote Code Execution (exploit/multi/http/struts_dmi_exec) (Metasploit, 30 Apr 2016).
PoC repositories
Found on GitHub.1 informational
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| nikamajinkya/Sn1p3r | 12 Aug 2016 +108 d | 8 | Informational · list |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | 39756 | unknown | 14 Nov 2026 |
| Exploit-DB | Apache Struts - Dynamic Method Invocation Remote Code Execution (Metasploit) | 2 May 2016 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Apache Struts Dynamic Method Invocation Remote Code Execution (exploit/multi/http/struts_dmi_exec) | 30 Apr 2016 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache S2-032 Struts - Remote Code Execution | 16 Feb 2021 | 14 Nov 2026 |
| PoC Index | http://www.rapid7.com/db/modules/exploit/linux/http/struts_dmi_exec | unknown | 14 Nov 2026 |
| PoC Index | http://www.rapid7.com/db/modules/exploit/multi/http/struts_dmi_exec | unknown | 14 Nov 2026 |