CVEs / CVE-2012-0391
CVE-2012-0391: Apache Struts 2 Improper Input Validation Vulnerability
- Known exploited in the CISA KEV catalog since 21 Jan 2022
- critical 9.8 CVSS 3.1 (NVD)
- EPSS 75.5% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2012-0391
Summary
The ExceptionDelegator component in Apache Struts 2 before 2.2.3.1 contains an improper input validation vulnerability that allows for remote code execution.
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| n/a n/a | n/a | — |
Exploitation
| In CISA KEV since | 21 Jan 2022 |
|---|---|
| Due date for US federal agencies | 21 Jul 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-94 |
References
- CVE-2012-0391 on NVD
- CVE-2012-0391 in the CISA KEV catalog
- http://archives.neohapsis.com/archives/bugtraq/2012-01/0031.html Broken Link, Exploit
- http://secunia.com/advisories/47393 Vendor Advisory
- http://struts.apache.org/2.x/docs/s2-008.html Vendor Advisory
- http://struts.apache.org/2.x/docs/version-notes-2311.html Vendor Advisory
- http://www.exploit-db.com/exploits/18329 Exploit
- https://issues.apache.org/jira/browse/WW-3668 Vendor Advisory
- https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt Broken Link, Exploit
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.