PoC Monitor
← All CVEs
CVE-2013-2251published 18 Jul 2013 01:00 UTCData: JSON · API

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.

First public PoC 6.5 daysafter publication · 24 Jul 2013 · Metasploit
Public PoCs73 on GitHub · 4 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-74
CISA KEV 25 Mar 20228.7 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

org.apache.struts:struts2-core (Maven)
  • < 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 publication
t=0+1 y+2 y+3 y+4 y+5 y+6 y+7 y+8 yCVE published18 Jul 2013 · t = 0First public PoC24 Jul 2013 · t+6.5dAdded to CISA KEV25 Mar 2022 · t+8.7y

First 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
RepositoryCreatedStarsAssessment
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
  • references an exfiltration/paste endpoint in README.md
  • no network code found (normal for a local exploit)

Below the suspicion threshold (50); does not change the assessment.

Not a PoC 1
RepositoryCreatedStarsAssessment
nth347/struts2-CVE-2013-2251 4 Aug 2023 +10.0 y 0 Not a PoC · unrelated
Flags · score 15
  • no network code found (normal for a local exploit)

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.

PoC characteristics

What to hunt for in your logs · from 3 PoC repos

GET /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.

GET /index.action
(?i)^/index\.action\?(?:.*&)?redirect:%25%7B%23context%5B%22xwork\.MethodAccessor\.denyMethodExecution%22%5D%3Dfalse

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /index.action
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.

GET /index.action
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