Apache Struts 2 namespace OGNL injection (S2-057)
CVE-2018-11776 is a namespace-handling OGNL injection vulnerability in Apache Struts 2 that permits unauthenticated remote code execution under specific configurations. Insufficient validation allows attacker-controlled request-path input to reach OGNL expression evaluation. Exploitation requires alwaysSelectFullNamespace to be true, whether explicitly configured or enabled by a plugin such as the Convention Plugin. Vulnerable configurations use results without an explicit namespace beneath a package with no namespace or a wildcard namespace, or URL tags with neither value nor action set under equivalent package namespace conditions. Affected versions include 2.3 through 2.3.34 and 2.5 through 2.5.16; additional affected-version information extends the earlier range to 2.0.4.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation enables arbitrary code execution in the application context and may result in full compromise of the affected server. Demonstrated exploitation includes reading server-local files and returning command output through an HTTP redirect header. Exploitation has also been associated with deployment of Coinbitminer and XMRigCC cryptocurrency-mining payloads.
If you can’t patch tonight, do this now.
As a temporary workaround, configure explicit namespaces for all defined packages and results, and ensure all JSP URL tags specify a value or action, particularly when the enclosing package has no namespace or a wildcard namespace. This is a weak configuration-based workaround; upgrading is strongly recommended.
Patch, then assume compromise.
Upgrade Apache Struts 2.3.x deployments to 2.3.35 or later and 2.5.x deployments to 2.5.17 or later. Patch even applications whose current configuration does not expose the vulnerability, because subsequent configuration changes can introduce exposure. For affected MiCloud Telepo deployments, upgrade to version 4.6 or later, or apply the Mitel-provided patch for version 4.5 Patch 10 (4.5.13081) and earlier.
9 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.