CVE-2013-2251: Apache Struts 2 S2-016 OGNL Remote Code Execution
- Vendors
- Apache Software FoundationFujitsuOracle Corporation
CVE-2013-2251, addressed by Apache Struts security bulletin S2-016, is an OGNL expression injection vulnerability in Apache Struts 2.0.0 through 2.3.15. Struts processes parameters using the action:, redirect:, and redirectAction: prefixes without sufficient filtering of attacker-controlled OGNL expressions. A remote attacker can supply a crafted prefixed parameter containing an OGNL expression and cause it to be evaluated in the server-side Struts/Java context, enabling arbitrary Java method invocation and potentially operating-system command execution.
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.
Unauthenticated remote exploitation can result in arbitrary code execution in the security context of the application server running the vulnerable Struts application. An attacker may execute system commands, access or alter application-accessible data, deploy malware or web shells, and use the compromised server as a foothold for further intrusion. Mirai-derived malware has incorporated exploitation support for this vulnerability for propagation.
Mitigation
If you can’t patch tonight, do this now.
Until upgrade is complete, restrict access to affected Struts applications to trusted clients where feasible, place compensating controls in a reverse proxy or web application firewall to detect and block suspicious action:, redirect:, and redirectAction: parameter values containing OGNL syntax, and monitor application and web-server logs for malformed redirect parameters and expression-evaluation attempts. These controls are temporary and may be bypassed; applying the vendor fix is required.
Remediation
Patch, then assume compromise.
Upgrade Apache Struts to version 2.3.15.1 or a later supported release containing the S2-016 fix. Identify and update all applications that bundle or depend on vulnerable Struts libraries, then redeploy and verify the effective runtime version. Remove vulnerable versions from application-server deployments and dependency caches to prevent an older library from remaining active.
Exploits
1 exploit 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.
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-2013-2251 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 25, 2022.
- Is there a public exploit for CVE-2013-2251?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2013-2251, the earliest disclosed Jul 2, 2013.
- Is there a patch for CVE-2013-2251?
- Upgrade Apache Struts to version 2.3.15.1 or a later supported release containing the S2-016 fix. Identify and update all applications that bundle or depend on vulnerable Struts libraries, then redeploy and verify the effective runtime version.
- What products are affected by CVE-2013-2251?
- Apache Software Foundation Struts, Apache Software Foundation Archiva, Fujitsu Gp5000 Firmware, Fujitsu Gp7000f Firmware, Fujitsu Gp-S Firmware, and 5 more.
- How severe is CVE-2013-2251?
- CVE-2013-2251 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Oct 16, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.