CVE-2017-12611: Apache Struts FreeMarker Expression Injection RCE (S2-053)
- Vendor
- Apache Software Foundation
CVE-2017-12611 is an expression-injection vulnerability affecting Apache Struts 2.0.0 through 2.3.33 and 2.5 through 2.5.10.1. Applications that use expression literals or force expression evaluation in FreeMarker tags, rather than using string literals, can cause attacker-controlled request values to be evaluated as expressions. When such values reach a vulnerable tag, a remote attacker can execute arbitrary code on the application server.
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 permits arbitrary code or operating-system command execution with the privileges of the Struts application process. This can compromise application data and secrets, allow modification of application resources, and disrupt service. The extent of compromise depends on the process permissions and accessible resources.
Mitigation
If you can’t patch tonight, do this now.
Review FreeMarker tag usage and replace unintended expression evaluation with string literals. Prevent attacker-controlled request values from being incorporated into expression literals or forcibly evaluated tag expressions.
Remediation
Patch, then assume compromise.
Upgrade Apache Struts to version 2.3.34 or later in the 2.3.x branch, or version 2.5.11 or later in the 2.5.x branch.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
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-2017-12611 exploited in the wild?
- Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2017-12611?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2017-12611, the earliest disclosed Sep 8, 2017.
- Is there a patch for CVE-2017-12611?
- Upgrade Apache Struts to version 2.3.34 or later in the 2.3.x branch, or version 2.5.11 or later in the 2.5.x branch.
- What products are affected by CVE-2017-12611?
- Apache Software Foundation Struts.
- How severe is CVE-2017-12611?
- CVE-2017-12611 has a CVSS v3 score of 9.8 (Critical) and an EPSS score of 87.1% (100th percentile) as of Nov 19, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.