Apache Struts
Apache Struts Improper Input Validation Vulnerability
Apache Struts 2.0.0 through 2.3.15 allows remote attackers to execute arbitrary OGNL expressions via a parameter with a crafted (1) action:, (2) redirect:, or (3) redirectAction: prefix.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- < 2.3.15.1
Fixed in 2.3.15.1
from GitHub Security Advisory GHSA-47qp-8v9g-39hp
Mitigation
Upgrade org.apache.struts:struts2-core to 2.3.15.1 or later.
Timeline
Days relative to CVE publicationFirst public PoC 6.5 days after publication; added to CISA KEV 8.7 years after publication. First PoC: Metasploit exploit: Apache Struts 2 DefaultActionMapper Prefixes OGNL Code Execution (exploit/multi/http/struts_default_action_mapper) (Metasploit, 24 Jul 2013).
PoC repositories
Found on GitHub.3 PoCs · 1 not a PoC
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| fadelmuharam/s2-016 | 4 Dec 2022 +9.4 y | 1 | PoC |
| nth347/CVE-2013-2251 | 4 Aug 2023 +10.0 y | 0 | PoC via PoC Index |
| felixsta/hack_tips | 27 May 2025 +11.9 y | 0 | PoC
Flags · score 45
Below the suspicion threshold (50); does not change the assessment. |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| nth347/struts2-CVE-2013-2251 | 4 Aug 2023 +10.0 y | 0 | Not a PoC · unrelated
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Apache Struts 2 - DefaultActionMapper Prefixes OGNL Code Execution (Metasploit) | 27 Jul 2013 | 14 Nov 2026 |
| Exploit-DB | Apache Struts2 2.0.0 < 2.3.15 - Prefixed Parameters OGNL Injection | 14 Jan 2014 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Apache Struts 2 DefaultActionMapper Prefixes OGNL Code Execution (exploit/multi/http/struts_default_action_mapper) | 24 Jul 2013 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Struts 2 - DefaultActionMapper Prefixes OGNL Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 3 PoC reposGET /index.action
- Query
redirect:%25%7B%23context%5B%22xwork.MethodAccessor.denyMethodExecution%22%5D%3Dfalse- PoC User-Agent
body_markers- Seen in
- 1 repo: felixsta/hack_tips
- Evidence
- felixsta/hack_tips/README.md:163
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/index\.action\?(?:.*&)?redirect:%25%7B%23context%5B%22xwork\.MethodAccessor\.denyMethodExecution%22%5D%3Dfalse
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2013-2251 Apache Struts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/index.action"; http.uri; content:"redirect:%25%7B%23context%5B%22xwork.MethodAccessor.denyMethodExecution%22%5D%3Dfalse"; reference:url,poc.griffinguard.io/cve/CVE-2013-2251; classtype:web-application-attack; sid:9510080; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Struts exploit attempt (CVE-2013-2251)
id: gg-pocmon-cve-2013-2251-9510080
status: experimental
description: Request pattern taken from public PoCs for CVE-2013-2251. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2013-2251
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/index.action'
cs-uri-query|contains|all:
- 'redirect:%25%7B%23context%5B%22xwork.MethodAccessor.denyMethodExecution%22%5D%3Dfalse'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2013.2251