CVE-2012-0391
CRITICAL 9.8CVSS 3.1known exploitedApache Struts Remote Java Code Execution
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.
- Published
- 8 Jan 2012
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-20CWE-94
- Also known as
- GHSA-4wrr-9h5r-m92w
- Sources
- NVDJSONCISA KEVJSONOSV GHSA-4wrr-9h5r-m92wJSON
In CISA's Known Exploited Vulnerabilities catalog since 21 Jan 2022; US federal agencies must fix it by 21 Jul 2022.
Apply updates per vendor instructions.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | strutscpe:2.3:a:apache:struts:*:*:*:*:*:*:*:* |
< 2.2.3.1 | 2.2.3.1 |
| OSV | Maven | org.apache.struts:struts2-core | < 2.2.3.1 | 2.2.3.1 |
| OSV | Maven | org.apache.struts.xwork:xwork-core | < 2.2.3.1 | 2.2.3.1 |
References
- http://archives.neohapsis.com/archives/bugtraq/2012-01/0031.html · Broken Link, Exploit, WEB
- http://secunia.com/advisories/47393 · Vendor Advisory, WEB
- http://struts.apache.org/2.x/docs/s2-008.html · Vendor Advisory, WEB
- http://struts.apache.org/2.x/docs/version-notes-2311.html · Vendor Advisory, WEB
- http://www.exploit-db.com/exploits/18329 · Exploit, WEB
- https://issues.apache.org/jira/browse/WW-3668 · Vendor Advisory, WEB
- https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt · Broken Link, Exploit, WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391 · US Government Resource, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2012-0391 · ADVISORY
- https://github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e · WEB
- https://github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b · WEB
- https://github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892 · WEB
- https://github.com/apache/struts · PACKAGE
History
- 25 Nov 2026 20:16 UTC · NVD: first stored (published 8 Jan 2012)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 4 May 2022)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 21 Jan 2022)
- 21 Jan 2022 00:00 UTC · Listed as known exploited