CVE-2012-0391 — 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.
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- Confirmed exploitation (CISA KEV)+35
- Public exploit/PoC (metasploit, exploitdb)+20
- EPSS 75.6% (30-day exploitation probability)+15
- Technical severity (critical)+10
- Automatable exploitation (SSVC)+3
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
CISA SSVC assessment CISA
Three decision points CISA publishes for the CVEs it assesses (SSVC 2.0.3). A stakeholder decision, not a severity score.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
- Maven Org.apache.struts:struts2-core: fixed in version 2.2.3.1 — github.com (GitHub Security Advisories)
- Maven Org.apache.struts.xwork:xwork-core: fixed in version 2.2.3.1 — github.com (GitHub Security Advisories)
CISA required action CISA
Apply updates per vendor instructions.
US federal deadline: Jul 21, 2022 — passed 1547 day(s) ago
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Apache Software Foundation Struts, Maven Org.apache.struts:struts2-core, Maven Org.apache.struts.xwork:xwork-core).
- Treat as emergency remediation: the CVE is in CISA KEV (confirmed exploitation).
- The attack is network-based and needs no privileges: restrict exposure (ACLs, VPN, WAF) until patched.
- Apply the fixed version or the patch documented under Remediation.
- EPSS ahead of 100% of scored CVEs: prioritize it in the patch queue.
- Search available logs for exploit probes matching the vulnerability class (injection), errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Apache Software Foundation | Struts | < 2.2.3.1 | Vulnerable | NIST National Vulnerability Database |
| Maven | Org.apache.struts:struts2-core | < 2.2.3.1 | Vulnerable | GitHub Security Advisories |
| Maven | Org.apache.struts.xwork:xwork-core | < 2.2.3.1 | Vulnerable | GitHub Security Advisories |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | Critical | 3.9 | 5.9 | nvd@nist.gov via NIST National Vulnerability Database |
| 9.8 | CVSS 3.1 | Critical | 3.9 | 5.9 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 via NIST National Vulnerability Database |
| 9.8 | CVSS 3.1 | Critical | — | — | GitHub, Inc. via GitHub Security Advisories |
| 9.8 | CVSS 3.1 | Critical | — | — | CISA-ADP via CVE Program (cve.org) e CISA ADP |
| 9.3 | CVSS 2.0 | High | 8.6 | 10.0 | nvd@nist.gov via NIST National Vulnerability Database |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (score shown at the top: nvd@nist.gov) Weakness MITRE
Weakness class according to MITRE’s CWE catalog.
CISA KEV details CISA
CISA lists a CVE once it has evidence of exploitation against real targets.
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a reference date.
Public exploits, PoCs and detection templates
Public code that demonstrates or tests the flaw raises the odds of mass exploitation — and Nuclei templates help find vulnerable assets in your environment.
- Apache Struts Remote Command Execution excellent Jan 6, 2012
- Apache Struts 2 < 2.3.1 - Multiple Vulnerabilities verified Jan 6, 2012
- Apache Struts 2.2.1.1 - Remote Command Execution (Metasploit) verified Jun 5, 2012
Warning: public PoCs are sometimes disguised malware. Use them only for authorized testing in an isolated environment. This portal does not host exploit code — it only points to the sources.
EPSS over time FIRST
Oct 13, 2026 → Oct 14, 2026 · 2 reading(s) · max 75.60%
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Prioritize edge telemetry for the network-reachable component (proxy, WAF, IDS/IPS).
- Look for parameters with command/query metacharacters and unexpected child processes of the service.
- Hunt retroactively in logs from before Jan 21, 2022 (KEV listing): exploitation may have started earlier.
Timeline
What happened to this CVE, newest first.
- 2026
- Fix documented
- Affected products added · maven/org.apache.struts:struts2-core, maven/org.apache.struts.xwork:xwork-core
- SSVC assessment updated
- Record published
- Affected products added · apache/struts
- CVSS changed · 9.8
- Source status changed · → Analyzed
- Added to CISA KEV (detected)
- Record created in this database
- 2022
- Added to CISA KEV catalog
- 2012
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 2× References added · Oct 13, 2026 – Oct 13, 2026
- 1× Official description updated · Oct 13, 2026 – Oct 13, 2026
References
13 on the record
- secunia.com/advisories/47393
- struts.apache.org/2.x/docs/s2-008.html
- struts.apache.org/2.x/docs/version-notes-2311.html
- issues.apache.org/jira/browse/WW-3668
- www.cisa.gov/known-exploited-vulnerabilities-catalog
- github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892
- archives.neohapsis.com/archives/bugtraq/2012-01/0031.html
- github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e
- nvd.nist.gov/vuln/detail/CVE-2012-0391
- www.exploit-db.com/exploits/18329
- www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt
- github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b
- github.com/advisories/GHSA-4wrr-9h5r-m92w
Elsewhere on this site
Related CVEs (same products)
- High CVE-2026-104714 Apache Struts: Shared message formatter exposes date and time values across concurrent requests 10d
- Critical CVE-2026-104711 Apache Struts: OGNL injection in the legacy RESTful action mapper 10d
- High CVE-2026-104712 Apache Struts: Disproportionate response size when rendering BigDecimal request parameters 10d
- Medium CVE-2026-104713 Apache Struts: Unbounded request body read in the REST plugin 10d
- Medium CVE-2026-73632 Exposure of data element to wrong session vulnerability in the JSON plugin of Apache… Aug 15, 2026
- High CVE-2026-73634 Uncontrolled Resource Consumption in Apache Software Foundation Struts Aug 15, 2026
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2012-0391 is "Apache Struts 2 Improper Input Validation Vulnerability", rated Critical. It affects Struts (Apache Software Foundation); versions are in the scope table. It is in CISA KEV: there is evidence of real-world exploitation. CVSS 9.8 describes technical severity. EPSS 75.60% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.