CVE-2012-0391: Apache Struts 2 Improper Input Validation Vulnerability
Vulnerability summary
CVE-2012-0391 is a critical (CVSS 9.8) Code Injection vulnerability in Apache Struts 2. It is known to be exploited: CISA lists it, first on 21-01-2022. EPSS estimates a 75.60% chance of exploitation in the next 30 days, higher than 99.5% of scored vulnerabilities. 5 public exploits are recorded.
Timeline
- 08-01-2012PublishedVulnerability first disclosed.
- 21-01-2022Added to CISA KEVApache Struts 2 Improper Input Validation Vulnerability
- 21-07-2022CISA remediation dueApply updates per vendor instructions.
- 22-10-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 3 sources · 2 versions- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · MavenEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
75.60%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 75.60% on 19-09-2026
Known exploited
Compare KEV catalogs- Added
- 21-01-2022
- Federal due date
- 21-07-2022
CISA required action
Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2012-0391
Public exploits
5 foundExploit Reference (archives.neohapsis.com)
Maturity: unknown
Exploit Reference (sec-consult.com)
Maturity: unknown
Apache Struts 2.2.1.1 - Remote Command Execution (Metasploit)
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Apache1 product
- struts< 2.2.3.1
Org.apache.struts1 product
- struts2-core< 2.2.3.1
Org.apache.struts.xwork1 product
- xwork-core< 2.2.3.1
3 vendors · 3 products
References
13 links- archives.neohapsis.com/archives/bugtraq/2012-01/0031.htmlMailing ListX Refsource BUGTRAQBroken LinkExploitWEB
- www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txtX Refsource MISCBroken LinkExploitWEB
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391Government ResourceUS Government ResourceWEB