CVE-2016-3081 – High Severity Command Injection in Apache Struts (CISA KEV)
Key takeaways
- CVE-2016-3081 is a High severity command injection flaw in Apache Struts with CISA KEV status.
- Affected versions: Struts 2.3.19‑2.3.28 when Dynamic Method Invocation (DMI) is enabled.
- Impact: Remote code execution (RCE) leading to full compromise of confidentiality, integrity, and availability.
- Immediate action: Upgrade to patched versions (2.3.20.3, 2.3.24.3, or 2.3.28.1) or disable DMI; apply vendor mitigations.
- For detailed exploit activity and timelines, see the .
Overview#
CVE-2016-3081 is a critical command injection vulnerability in the Apache Struts 2 framework. The flaw resides in the Dynamic Method Invocation (DMI) feature, which, when enabled, allows attackers to craft OGNL expressions using the method: prefix to execute arbitrary system commands on the underlying server. Exploitation requires no authentication and can lead to full host compromise.
Technical details#
When DMI is enabled (struts.enable.DynamicMethodInvocation=true), Struts processes action mappings that contain the method: prefix. An attacker can supply a malicious OGNL expression (e.g., ) that bypasses security checks and executes arbitrary code via chained expressions. The vulnerability affects Struts versions 2.3.19 through 2.3.28, inclusive of several sub‑ranges, when DMI is turned on.



