patchminder
Exploited in the wild · CISA KEV CVE-2012-0391

Code injectionin Apache Struts 2.

Published 8 Jan 2012 · Updated 22 Oct 2025 · Every fact sourced

JSONCite
Is it exploited?
Yes

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.

On CISA's listAttack code is public
Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 76.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.2.3.1 or later
In plain words

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.

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
org.apache.struts:struts2-core (Maven)
before 2.2.3.1
2.2.3.1
GitHub advisory
org.apache.struts.xwork:xwork-core (Maven)
before 2.2.3.1
2.2.3.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 6 Jan 2012
    Metasploit module: Apache Struts Remote Command Execution.
  2. 8 Jan 2012
    CVE ID reserved by mitre.
  3. 8 Jan 2012
    Published in the CVE List.
  4. 21 Jan 2022
    Added to CISA's Known Exploited Vulnerabilities list.
  5. 22 Oct 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.

Metasploit module
1 module
Nuclei scan template
None known
Exploit-DB
2 entries
GitHub proof of concepts
None known
Exploit-DBEDB-ID 18984remote exploit for multiple, published 5 Jun 2012, verified by Exploit-DB
Exploit-DBEDB-ID 18329web application exploit for multiple, published 6 Jan 2012, verified by Exploit-DB
Referencewww.exploit-db.comnamed as exploit in the CVE record

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.

Related

Same weakness: Code injection

All CWE-94 vulnerabilities

References
Cite this page

Patchminder. CVE-2012-0391: Code injection in Apache Struts 2. https://patchminder.com/cve/cve-2012-0391/ (accessed 5 December 2026).