PoC Monitor
← All CVEs
CVE-2012-0391published 8 Jan 2012 15:00 UTCData: JSON · API

Apache Struts 2

Apache Struts 2 Improper Input Validation Vulnerability

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during certain exception handling for mismatched data types of properties, which allows remote attackers to execute arbitrary Java code via a crafted parameter.

First public PoC 2.6 days beforebefore publication · 6 Jan 2012 · Exploit-DB
Public PoCs30 on GitHub · 3 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-94
CISA KEV 21 Jan 202210.0 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.2.3.1

Fixed in 2.2.3.1

from GitHub Security Advisory GHSA-4wrr-9h5r-m92w

org.apache.struts.xwork:xwork-core (Maven)
  • < 2.2.3.1

Fixed in 2.2.3.1

from GitHub Security Advisory GHSA-4wrr-9h5r-m92w

Mitigation

Upgrade org.apache.struts:struts2-core to 2.2.3.1 or later.

Upgrade org.apache.struts.xwork:xwork-core to 2.2.3.1 or later.

Timeline

Days relative to CVE publication
t=0+2 y+4 y+6 y+8 y+10 yFirst public PoC6 Jan 2012 · t−2.6dCVE published8 Jan 2012 · t = 0Added to CISA KEV21 Jan 2022 · t+10.0y

First public PoC 2.6 days before publication; added to CISA KEV 10.0 years after publication. First PoC: Apache Struts 2 < 2.3.1 - Multiple Vulnerabilities (Exploit-DB, 6 Jan 2012).

PoC repositories

Found on GitHub.

No PoC repositories found yet.

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.
SourceTitlePublishedFound by us
CVE record (tagged exploit)18329unknown14 Nov 2026
Exploit-DBApache Struts 2 < 2.3.1 - Multiple Vulnerabilities6 Jan 201214 Nov 2026
Exploit-DBApache Struts 2.2.1.1 - Remote Command Execution (Metasploit)5 Jun 201214 Nov 2026
MetasploitMetasploit exploit: Apache Struts Remote Command Execution (exploit/multi/http/struts_code_exec_exception_delegator)3 Jun 201214 Nov 2026