LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2012-0391: Apache Struts 2 Improper Input Validation Vulnerability

RBRecent Breaches Vulnerability Intelligence·Jan 21, 2022
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Jul 21, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2012-0391 to its Known Exploited Vulnerabilities catalog on Jan 21, 2022, with a federal patch deadline of Jul 21, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

The ExceptionDelegator component in Apache Struts 2 before 2.2.3.1 contains an improper input validation vulnerability that allows for remote code execution.

CVE-2012-0391 is an improper input validation flaw in the ExceptionDelegator component of Apache Struts 2 (versions before 2.2.3.1). It can allow remote code execution on affected servers. For IT and security teams running Java web applications that rely on Struts 2, this matters because successful abuse can give an attacker control of the application process and the host it runs on. Confirm exact version boundaries and fixed releases against the vendor advisory.

How it works

This issue is classed as CWE-20 (Improper Input Validation). In broad terms for this weakness and product class, the framework fails to adequately validate or constrain certain input that reaches the ExceptionDelegator component. An attacker who can send crafted requests to an exposed Struts 2 endpoint may cause the application to process that input in an unsafe way, leading to remote code execution under the privileges of the web application. Public detail on precise request shape and exploit mechanics is limited here; treat any working proof-of-concept as untrusted and verify behavior only in isolated lab conditions against the vendor’s description. The practical outcome is that a reachable, unpatched Struts 2 instance can be turned into a foothold for further lateral movement or data access.

Am I affected? How to find it in your systems

Apache Struts 2 is commonly embedded in Java EE web applications, often behind reverse proxies or application servers (for example Tomcat, JBoss/WildFly, WebLogic). It may appear as libraries inside WAR/EAR deployments rather than a standalone product.

How to remediate

Patch first. Apply the updates specified by the vendor for Apache Struts 2 so that the ExceptionDelegator improper validation issue is corrected. CISA’s required action is to apply updates per vendor instructions. After upgrading, redeploy applications, restart affected services, and verify the running library versions match the fixed release.

If you can't patch immediately

Reduce exposure until the vendor update can be installed:

If your data may have been exposed

Actively exploited remote-code-execution flaws in web frameworks frequently precede broader compromise and data theft. Known ransomware use is not documented for this CVE, but that does not rule out other malicious activity. If you suspect exploitation, isolate affected hosts, preserve volatile evidence, rotate credentials accessible to the application, and begin forensic review. You can run a free exposure scan of your email addresses against known breach datasets to see whether associated accounts appear in prior leaks while you continue containment and recovery.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedApache · Struts 2
WeaknessCWE-20
Added to CISA KEVJan 21, 2022
Federal patch deadlineJul 21, 2022
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities