CVE-2012-0391: Apache Struts 2 Improper Input Validation Vulnerability
The ExceptionDelegator component in Apache Struts 2 before 2.2.3.1 contains an improper input validation vulnerability that allows for remote code execution.
Why it matters
CISA added CVE-2012-0391 to its Known Exploited Vulnerabilities (KEV) catalog on 2022-01-21 — meaning it is confirmed to be exploited in the wild, not just theoretically risky. US federal agencies had to remediate it by 2022-07-21, and it is a high priority for everyone else too.
How to fix it
Apply updates per vendor instructions.
Details
- Affected: Apache Struts 2
- Added to CISA KEV: 2022-01-21
- Federal remediation due: 2022-07-21
- Weakness: CWE-20
- EPSS: 75.6% chance of exploitation in the next 30 days, higher than 100% of all CVEs
- Reference: NVD entry for CVE-2012-0391
Affected open-source packages
The GitHub Advisory Database links CVE-2012-0391 to these packages. Each page lists every advisory for the package, the affected versions and the fixed release:
- org.apache.struts:struts2-core Maven (Java)
- org.apache.struts.xwork:xwork-core Maven (Java)
Is CVE-2012-0391 in your fleet?
SkyShield scans your servers, containers and cloud for vulnerable packages and images (Trivy), ranks them by whether they're on CISA KEV and their EPSS exploit probability, and shows the fix per machine. Start free.