CVE-2012-0391 — Vulnerability in struts2-core — CVE Details
Apache Struts Remote Java Code Execution
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Does your project use an affected org.apache.struts:struts2-core version?
Paste your pom.xml to check it for CVE-2012-0391 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published May 4, 2022 (1667 days ago).
- Last revised May 5, 2026 — 1463 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 103 days before publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 2.2.3.1 for org.apache.struts:struts2-core -->
<!-- Update pom.xml dependency version to 2.2.3.1 for org.apache.struts.xwork:xwork-core -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Maven (2).
| Package | Fixed In |
|---|---|
| org.apache.struts:struts2-core Maven · Affected: 2.0.11, 2.0.11.1, 2.0.11.2, 2.0.12 (+12 more) | 2.2.3.1 |
| org.apache.struts.xwork:xwork-core Maven · Affected: 2.2.1, 2.2.1.1, 2.2.3 | 2.2.3.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-0391ADVISORY
- https://github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427eWEB
- https://github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885bWEB
- https://github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892WEB
- https://github.com/apache/strutsPACKAGE
- https://issues.apache.org/jira/browse/WW-3668WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391WEB
- https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txtWEB
- https://archives.neohapsis.com/archives/bugtraq/2012-01/0031.htmlWEB
- https://secunia.com/advisories/47393WEB
- https://struts.apache.org/2.x/docs/s2-008.htmlWEB
- https://struts.apache.org/2.x/docs/version-notes-2311.htmlWEB
- https://www.exploit-db.com/exploits/18329WEB
Frequently Asked Questions
- What is CVE-2012-0391?
- Apache Struts Remote Java Code Execution. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2012-0391?
- CVE-2012-0391 affects org.apache.struts:struts2-core and org.apache.struts.xwork:xwork-core. It has a 76.5% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2012-0391 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 99.7% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: January 21, 2022
Remediation deadline: July 21, 2022
Also Known As
Related CVEs
- CVE-2023-50164CRITICAL
Apache Struts vulnerable to path traversal
- CVE-2024-53677CRITICAL
Apache Struts file upload logic is flawed
- CVE-2016-4438CRITICAL
Arbitrary code execution in Apache Struts 2
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2016-3087CRITICAL
Apache Struts vulnerable to arbitrary remote code execution due to improper input validation
- CVE-2016-3082CRITICAL
Remote Code Execution in Apache Struts
- CVE-2016-4436CRITICAL
Apache Struts improper action name cleanup
- CVE-2025-68493HIGH
Apache Struts 2 is Missing XML Validation