CVE-2012-0391 — Vulnerability in org.apache.struts:struts2-core —...
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.
Summary
Advisory Timeline
- First published May 4, 2022 (1622 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, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: maven (2).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| org.apache.struts:struts2-core | maven | 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 | 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. 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
Exploitation is straightforward and causes maximum impact. Patch immediately.
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
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies