CVE-2012-0391
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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
75.599%
chance of exploitation in the next 30 days
higher than 99.5% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-01-21
Public exploit code
Yes
Exploit references (NVD and CNA): 3
Metasploit modules: 1
Nuclei templates: 0
Exploit-DB: 2
Weakness
- CWE-94: Improper Control of Generation of Code
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Apache Struts 2 Improper Input Validation Vulnerability |
|---|---|
| Vendor / product | Apache / Struts 2 |
| Date added | 2022-01-21 |
| Federal remediation due date | 2022-07-21 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-02-10 |
Timeline
- 2012-01-06First Exploit-DB entry (EDB-ID 18329)2 days before publication
- 2012-01-08Published by the CNA15:00 UTC
- 2022-01-21Added to the CISA KEV catalog3666 days after publication
- 2022-05-04GitHub advisory published (GHSA-4wrr-9h5r-m92w)3769 days after publication
- 2025-02-10CISA SSVC decision recorded4782 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 18984 | remote | multiple | 2012-06-05 | yes |
| EDB-ID 18329 | webapps | multiple | 2012-01-06 | yes |
GitHub advisory GHSA-4wrr-9h5r-m92w, affected packages:
| Ecosystem | Package | Vulnerable range | Patched |
|---|---|---|---|
| Maven | org.apache.struts.xwork:xwork-core | < 2.2.3.1 | 2.2.3.1 |
| Maven | org.apache.struts:struts2-core | < 2.2.3.1 | 2.2.3.1 |
Affected products
| Vendor | Product |
|---|---|
| apache | struts |
References
- http://secunia.com/advisories/47393
- http://struts.apache.org/2.x/docs/s2-008.html
- http://struts.apache.org/2.x/docs/version-notes-2311.html
- https://issues.apache.org/jira/browse/WW-3668
- http://archives.neohapsis.com/archives/bugtraq/2012-01/0031.html
- http://www.exploit-db.com/exploits/18329
- https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2012-0391'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2012-0391'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2012-0391'curl 'https://api.contrastcyber.com/cve_products/CVE-2012-0391'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2012-0391'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).