CVE-2016-3081: Apache Struts · Remote code execution
Exploitation: In the wild · CVSS 8.1 High · Unauthenticated · Published 2016-04-26
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.
Enclave's analysis
Struts 2 S2-032 is a remote code execution bug. An attacker sends one unauthenticated request with a crafted method: prefix to a Struts action, and it works when Dynamic Method Invocation is on. A public Metasploit module exists, and CISA added it to KEV in October 2026 with active exploitation. Upgrade to 2.3.20.3, 2.3.24.3 or 2.3.28.1, or turn DMI off.
Fix
Upgrade Apache Struts 2 to 2.3.20.3, 2.3.24.3 or 2.3.28.1. No fixed version is listed for Huawei products bundling Struts (AnyOffice, LogCenter, Agile Controller-Campus, FireHunter6000, OceanStor V3 firmware); follow the vendor advisory.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| Apache Struts 2 | 2.3.20 to 2.3.28 except 2.3.20.3 and 2.3.24.3 per Apache and OSV. CVE and NVD text give 2.3.19 to 2.3.28 as the range. | 2.3.20.3, 2.3.24.3 or 2.3.28.1 |
| Huawei products bundling Struts (AnyOffice, LogCenter, Agile Controller-Campus, FireHunter6000, OceanStor V3 firmware) | Specific versions listed in NVD CPE data. The Huawei advisory was not fetched. | Not listed |