CVE-2016-3081: 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.
Other sources
Apache Struts contains a command injection vulnerability that could allow remote attackers to execute arbitrary code via method:prefix when Dynamic Method Invocation is enabled.
— CISA
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.struts:struts2-coreto a version that resolves this vulnerability.Fixed in 2.3.24.3 - Upgrade
Upgrade
maven/org.apache.struts:struts2-coreto a version that resolves this vulnerability.Fixed in 2.3.28.1 - Upgrade
Upgrade
maven/org.apache.struts:struts2-coreto a version that resolves this vulnerability.Fixed in 2.3.20.3 - Upgrade
Upgrade
Apache Strutsto a version that resolves this vulnerability.Fixed in 2.3.20.2 - Upgrade
Upgrade
Apache Strutsto a version that resolves this vulnerability.Fixed in 2.3.24.1 - Upgrade
Upgrade
Apache Strutsto a version that resolves this vulnerability.Fixed in 2.3.28 - Compensating control
Discontinue use of Apache Struts if mitigations are unavailable.
Event History
Frequently Asked Questions
What is the severity of CVE-2016-3081?
CVE-2016-3081 is classified as high severity due to its ability to allow remote code execution via dynamic method invocation.
How do I fix CVE-2016-3081?
To fix CVE-2016-3081, upgrade to Apache Struts version 2.3.20.3, 2.3.24.3, or 2.3.28.1.
What systems are affected by CVE-2016-3081?
CVE-2016-3081 affects Apache Struts versions 2.3.19 to 2.3.28 when Dynamic Method Invocation is enabled.
Can CVE-2016-3081 be exploited remotely?
Yes, CVE-2016-3081 can be exploited remotely by malicious actors to execute arbitrary code.
What is Dynamic Method Invocation in relation to CVE-2016-3081?
Dynamic Method Invocation is a feature in Apache Struts that, when enabled, can be exploited in CVE-2016-3081 to compromise the application.