CVE-2016-3081: Apache Struts Dynamic Method Invocation Remote Code Execution
- Vendors
- Huawei TechnologiesOracle CorporationApache Software Foundation
CVE-2016-3081, documented in Apache Struts advisory S2-032, is a command injection vulnerability affecting Apache Struts 2.3.19–2.3.20.2, 2.3.21–2.3.24.1, and 2.3.25–2.3.28 when Dynamic Method Invocation is enabled. User-controlled method names supplied through the method: prefix in HTTP requests reach OGNL expression evaluation during action invocation. An unauthenticated remote attacker can supply a malicious chained expression to execute arbitrary code on the application server. The vulnerability has been exploited in real-world attacks.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of the affected application and resources accessible to its runtime account. Attackers can execute commands, access application data and credentials, modify files, deploy malware or web shells, and disrupt services. Further compromise of connected systems depends on the application's privileges, accessible credentials, and network reachability.
Mitigation
If you can’t patch tonight, do this now.
Disable Dynamic Method Invocation by setting struts.enable.DynamicMethodInvocation to false and restarting the application. Until permanent remediation is complete, restrict access to affected applications through network controls. Supplementary WAF filtering can block method: parameters and suspicious OGNL expressions but should not replace disabling the vulnerable feature or upgrading.
Remediation
Patch, then assume compromise.
Upgrade to a supported Apache Struts release containing the fix. Historical fixed releases are 2.3.20.3, 2.3.24.3, and 2.3.28.1 for their respective branches; Struts 2.3.x is unsupported and should be replaced with a supported branch. For products embedding Struts, apply the relevant product vendor's update. Investigate possible prior exploitation, preserve relevant logs, and remove any established attacker access; patching alone does not remediate an existing compromise.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2016-3081 exploited in the wild?
- Yes. As of Nov 10, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Oct 8, 2026.
- Is there a public exploit for CVE-2016-3081?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2016-3081, the earliest disclosed Apr 27, 2016.
- Is there a patch for CVE-2016-3081?
- Upgrade to a supported Apache Struts release containing the fix. Historical fixed releases are 2.3.20.3, 2.3.24.3, and 2.3.28.1 for their respective branches; Struts 2.3.x is unsupported and should be replaced with a supported branch.
- What products are affected by CVE-2016-3081?
- Apache Software Foundation Struts, Huawei Technologies Agile Controller-Campus Firmware, Huawei Technologies Anyoffice, Huawei Technologies Firehunter6000 Firmware, Oracle Corporation Flexcube Private Banking, and at least 15 more.
- How severe is CVE-2016-3081?
- CVE-2016-3081 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 96.9% (100th percentile) as of Nov 10, 2026.
Recent activity
40 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.