patchminder
Weaponized · Metasploit CVE-2012-0394

Remote code executionin the org.apache.struts.xwork:xwork-core package.

Published 8 Jan 2012 · Updated 6 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Not scored
No source has scored it yet
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 72.7% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.3.18 or later
In plain words

The DebuggingInterceptor component in Apache Struts before 2.3.1.1, when developer mode is used, allows remote attackers to execute arbitrary commands via unspecified vectors. NOTE: the vendor characterizes this behavior as not "a security vulnerability itself.

What to do now
  • Upgrade org.apache.struts.xwork:xwork-core (Maven) to 2.3.18 or later.

Not confirmed by any source yet: severity not scored yet. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
org.apache.struts.xwork:xwork-core (Maven)
before 2.3.18
2.3.18
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 2 Developer Mode OGNL Execution.
  2. 8 Jan 2012
    CVE ID reserved by mitre.
  3. 8 Jan 2012
    Published in the CVE List.
  4. 6 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit).

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
2 entries
GitHub proof of concepts
None known
Exploit-DBEDB-ID 31434remote exploit for jsp, published 5 Feb 2014, 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
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

Other vulnerabilities in this package

References
Cite this page

Patchminder. CVE-2012-0394: Remote code execution in the org.apache.struts.xwork:xwork-core package. https://patchminder.com/cve/cve-2012-0394/ (accessed 5 December 2026).