Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2017-12611: Apache Struts FreeMarker Expression Injection RCE (S2-053)

Published Sep 20, 2017 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3
EPSS87.1%100th percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
Vendor
Apache Software Foundation
IdentifiersCVE-2017-12611CWE-917

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

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.

View more in app →
S2-053-CVE-2017-12611This repository contains a Python script (exploit.py) and a README.md file. The script exploits the Apache Struts 2 S2-053 vulnerability (CVE-2017-12611), which allows for remote code execution via crafted OGNL expressions in HTTP GET parameters. The exploit.py script takes three arguments: a target URL, a parameter name, and a system command to execute. It constructs a malicious OGNL payload that is injected into the specified parameter and sends a GET request to the target. If successful, the output of the executed command is returned in the HTTP response. The README provides usage instructions, an example, and references to further information. The exploit is operational and allows arbitrary command execution on vulnerable Struts 2 servers.brianwrf · Disclosed Sep 8, 2017 · python · networkOperationalCVE-2017-12611This repository provides a proof-of-concept (POC) exploit for CVE-2017-12611, a remote code execution vulnerability in Apache Struts 2. The repository contains three files: a .gitattributes file, a markdown file with the OGNL payload (payload.md), and a detailed readme (read_me.md) with setup and exploitation instructions. The exploit leverages an OGNL injection payload that, when submitted to a vulnerable Struts 2 endpoint (e.g., http://<your-ip>:8080/hello.action), executes arbitrary system commands on the server. The readme guides the user to set up a vulnerable environment using Docker Compose, submit the payload via Burp Suite, and obtain a shell by transforming intercepted requests into curl commands. The exploit demonstrates RCE by running the 'id' command but can be adapted for other commands. No detection scripts or fake elements are present; the repository is a functional POC for the specified vulnerability.tcetin704 · Disclosed Sep 15, 2025 · OGNL · markdown · networkPoC
Exposure surface

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.

VendorProductType
Apache Software FoundationStrutsapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.