CVE-2016-3081
Apache Struts Command Injection Vulnerability
Description
CVE-2016-3081 is a high-severity command injection vulnerability in Apache Struts that allows remote attackers to execute arbitrary code when Dynamic Method Invocation is enabled, by abusing the method: prefix in chained expressions. Affected versions are Struts 2.3.19 through 2.3.20.2, 2.3.21 through 2.3.24.1, and 2.3.25 through 2.3.28; the issue is tracked by Apache as S2-032. Because Struts sits in the request-handling path of Java web applications, this vulnerability turns an ordinary HTTP request into code execution with the privileges of the application server. The flaw also reaches far beyond Struts itself: Huawei storage and network products, Oracle FLEXCUBE, Oracle Micros Retail and Siebel eBilling all embed affected Struts versions. CISA has added CVE-2016-3081 to the Known Exploited Vulnerabilities catalog, its EPSS score of 96.1% is in the 99.9th percentile, and its remediation deadline of October 11, 2026 has already passed.
KEV Information
CVSS Score
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CalculatorAffected Products
| Vendor | Product | Version |
|---|---|---|
| huawei | agile controller-campus firmware | v100r002c00 |
| huawei | anyoffice | v200r005c00; v200r006c00 |
| huawei | logcenter | v100r001c10; v100r001c20 |
| huawei | firehunter6000 firmware | v100r001c20 |
| huawei | oceanstor 5300 v3 firmware | v300r001; v300r002; v300r003c00; v300r003c10 |
| huawei | oceanstor 5500 v3 firmware | v300r001; v300r002; v300r003c00; v300r003c10 |
| huawei | oceanstor 5600 v3 firmware | v300r001; v300r002; v300r003c00; v300r003c10 |
| huawei | oceanstor 5800 v3 firmware | v300r001; v300r002; v300r003c00; v300r003c10 |
| huawei | oceanstor 6800 v3 firmware | v300r001; v300r002; v300r003c00; v300r003c10 |
| huawei | oceanstor 18500 v3 firmware | v300r001; v300r002; v300r003c00; v300r003c10 |
| huawei | oceanstor 18500f firmware | v300r001; v300r002; v300r003c00; v300r003c10 |
| huawei | oceanstor 18800 v3 firmware | v300r001; v300r002; v300r003c00; v300r003c10 |
| huawei | oceanstor 18800f firmware | v300r001; v300r002; v300r003c00; v300r003c10 |
| huawei | oceanstor 9000 firmware | v100r001c01; v100r001c30; v300r005c00 |
| huawei | oceanstor n8500 firmware | v200r001c09spc505; v200r001c91spc205; v200r001c91spc900; v200r001c91spc901 |
| huawei | oceanstor onebox firmware | v100r003c10 |
| apache | struts | >= 2.3.20, < 2.3.20.3; >= 2.3.21, < 2.3.24.3; >= 2.3.25, < 2.3.28.1 |
| oracle | flexcube private banking | 2.0.0.0; 2.0.1; 2.2.0; 12.0.1; 12.0.3; 12.1.0 |
| oracle | micros retail xbri loss prevention | 10.0.1; 10.5.0; 10.6.0; 10.7.0; 10.8.0; 10.8.1 |
| oracle | siebel e-billing | 7.1 |
Multiple CVSS Assessments
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- http://packetstormsecurity.com/files/136856/Apache-Struts-2.3.28-Dynamic-Method-Invocation-Remote-Code-Execution.html(Exploit, Third Party Advisory)
- http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20160527-01-struts2-en(Third Party Advisory)
- http://www.oracle.com/technetwork/security-advisory/cpujul2016-2881720.html(Patch, Third Party Advisory)
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html(Third Party Advisory)
- http://www.rapid7.com/db/modules/exploit/linux/http/struts_dmi_exec(Third Party Advisory, Broken Link)
- http://www.rapid7.com/db/modules/exploit/multi/http/struts_dmi_exec(Third Party Advisory)
- http://www.securityfocus.com/bid/87327(Third Party Advisory, VDB Entry)
- http://www.securityfocus.com/bid/91787(Third Party Advisory, VDB Entry)
- http://www.securitytracker.com/id/1035665(Third Party Advisory, VDB Entry)
- https://struts.apache.org/docs/s2-032.html(Patch, Vendor Advisory)
- https://www.exploit-db.com/exploits/39756/(Exploit, Third Party Advisory, VDB Entry)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-3081(US Government Resource)
Weakness Type
CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Command injection occurs when software builds a command from externally influenced input and fails to neutralize the elements that change what the command does. In Apache Struts with Dynamic Method Invocation enabled, a request parameter carrying the method: prefix is resolved as an OGNL expression rather than treated as data, and chained expressions let the attacker reach beyond method selection into arbitrary code execution inside the application.
Learn more: CWE-77 — Improper Neutralization of Special Elements used in a Command ('Command Injection')
Impact Analysis
CVE-2016-3081 has a CVSS 3.1 base score of 8.1 (High) with the vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. Attack Vector (Network), Privileges Required (None), User Interaction (None): the attack is an HTTP request to a public endpoint, needing no account and no victim action. Attack Complexity (High) is the only metric holding the score down, and it reflects the precondition rather than the difficulty of the exploit: Dynamic Method Invocation must be enabled in the Struts configuration. Where it is, exploitation is straightforward and fully automated tooling exists. Confidentiality, Integrity and Availability (all High): code runs with the privileges of the Java application server, which exposes application data and database credentials, allows tampering with the application's behaviour and stored data, and permits taking the service down. For embedded deployments — Huawei OceanStor and FireHunter appliances, Oracle FLEXCUBE Private Banking, Micros Retail XBRi, Siebel eBilling — the exposure is harder to see and therefore often still open. The EPSS score of 96.1% in the 99.9th percentile reflects a decade of continuous exploitation of this Struts flaw.
Exploit Maturity
Public exploit code for CVE-2016-3081 is widely available. The reference set includes an Exploit-DB entry, the Packet Storm Security advisory Apache Struts 2.3.28 Dynamic Method Invocation Remote Code Execution, and a ready-made Metasploit module exploit/multi/http/struts_dmi_exec, so exploitation requires no development work at all. CISA has added the vulnerability to the Known Exploited Vulnerabilities catalog, confirming exploitation in the wild, and the deadline of October 11, 2026 has already passed; the entry does not flag ransomware usage. The EPSS score of 96.1%, in the 99.9th percentile, is among the highest values the model produces and matches the reality of a decade-old Struts remote code execution flaw with a Metasploit module: any reachable, unpatched instance with Dynamic Method Invocation enabled will be found by automated scanning. Treat discovery of an affected version as an incident, not a backlog item.
Remediation
- Carry out the action CISA requires, immediately. Apply mitigations in accordance with Apache's instructions, comply with CISA's BOD 26-04 "Prioritizing Security Updates Based on Risk" guidance and the "Forensics Triage Requirements", and discontinue use of the product if mitigations are unavailable. The KEV remediation deadline of October 11, 2026 has already passed.
- Upgrade Apache Struts to 2.3.20.3, 2.3.24.3 or 2.3.28.1 or later, the fixed releases named in the Apache advisory S2-032. Given that the Struts 2.3 line is long out of support, migrating to a currently maintained Struts release is the sounder outcome for any application still on it.
- Disable Dynamic Method Invocation. The vulnerability only applies when DMI is enabled, so setting
struts.enable.DynamicMethodInvocationtofalseis an effective immediate mitigation where an upgrade cannot be done at once — and a configuration worth keeping off permanently, since DMI exposes method selection to the request. - Find the embedded instances, not just your own applications. Affected Struts versions ship inside Huawei Agile Controller-Campus, AnyOffice, LogCenter, FireHunter6000 and the OceanStor storage family, and inside Oracle FLEXCUBE Private Banking, Micros Retail XBRi Loss Prevention and Siebel eBilling; apply the respective vendor updates, such as the Huawei advisory and the Oracle Critical Patch Update of July 2016.
- Assume exploitation on anything that was exposed, and harden the stack. Review application and web server logs for request parameters containing
method:and OGNL syntax, look for web shells and unexpected files in the deployment directory, rotate database and service credentials the application holds, and run the application server as an unprivileged account with outbound network restrictions so that code execution does not immediately become full host and network compromise.
Technical Details
With Dynamic Method Invocation enabled, Struts lets a request select the action method through a method: prefix, and that prefix is resolved as an OGNL expression. The framework fails to neutralize the special elements in such an expression, so a chained expression supplied in the request escapes method selection and is evaluated in full — the CWE-77 mechanism applied to an expression language rather than a shell. Because OGNL evaluation occurs inside the running Java application with its full class access, the attacker reaches runtime facilities that execute code with the privileges of the application server process. The CVSS vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H records the shape of the attack: remote, unauthenticated, no interaction, with High attack complexity standing in for the configuration precondition that DMI must be enabled, and complete impact across confidentiality, integrity and availability within the application server's own security authority. The fixed releases 2.3.20.3, 2.3.24.3 and 2.3.28.1 correct the handling of the prefix.
Frequently Asked Questions
Is CVE-2016-3081 being actively exploited?
Yes. CISA has added CVE-2016-3081 to the Known Exploited Vulnerabilities catalog, and the remediation deadline of October 11, 2026 has already passed. Public exploit code is available through Exploit-DB, Packet Storm Security and a Metasploit module, and the EPSS score of 96.1% places the vulnerability in the 99.9th percentile for exploitation likelihood. Use in ransomware campaigns is not recorded in the KEV entry.
What products are affected by CVE-2016-3081?
CVE-2016-3081 affects Apache Struts 2.3.19 through 2.3.20.2, 2.3.21 through 2.3.24.1, and 2.3.25 through 2.3.28, when Dynamic Method Invocation is enabled. It also affects products that embed those Struts versions, including Huawei Agile Controller-Campus, AnyOffice, LogCenter, FireHunter6000 and the OceanStor storage family, as well as Oracle FLEXCUBE Private Banking, Oracle Micros Retail XBRi Loss Prevention and Oracle Siebel eBilling.
How do I fix CVE-2016-3081?
Upgrade Apache Struts to 2.3.20.3, 2.3.24.3 or 2.3.28.1 or later per Apache advisory S2-032, or better, migrate to a supported Struts release. As an immediate mitigation, disable Dynamic Method Invocation by setting struts.enable.DynamicMethodInvocation to false, since the vulnerability only applies when DMI is enabled. For embedded instances in Huawei and Oracle products, apply the respective vendor updates.
How severe is CVE-2016-3081?
CVE-2016-3081 is rated High with a CVSS 3.1 base score of 8.1: unauthenticated remote code execution with full confidentiality, integrity and availability impact, scored just below critical because Dynamic Method Invocation must be enabled. Its EPSS score of 96.1% is in the 99.9th percentile. Where DMI is enabled and the application is reachable, the practical severity is equivalent to a critical finding.
Need Help With Vulnerability Management?
Our security experts can help you prioritize and remediate vulnerabilities effectively.