Code injectionin Apache Struts 2.
On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 21 Jan 2022.
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.
- Upgrade org.apache.struts:struts2-core (Maven) to 2.2.3.1 or later.
- Upgrade org.apache.struts.xwork:xwork-core (Maven) to 2.2.3.1 or later.
- CISA requires US federal agencies to fix it by 21 Jul 2022.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 6 Jan 2012Metasploit module: Apache Struts Remote Command Execution.
- 8 Jan 2012CVE ID reserved by mitre.
- 8 Jan 2012Published in the CVE List.
- 21 Jan 2022Added to CISA's Known Exploited Vulnerabilities list.
- 22 Oct 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Same weakness: Code injection
- archives.neohapsis.com mailing-list, x_refsource_BUGTRAQ
- struts.apache.org x_refsource_CONFIRM
- struts.apache.org x_refsource_CONFIRM
- www.sec-consult.com x_refsource_MISC
- issues.apache.org x_refsource_CONFIRM
- secunia.com third-party-advisory, x_refsource_SECUNIA
- www.cisa.gov government-resource
Patchminder. CVE-2012-0391: Code injection in Apache Struts 2. https://patchminder.com/cve/cve-2012-0391/ (accessed 5 December 2026).