Skip to content
Server Security Center
KEVcritical9.8

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

Apache Struts 2 · listed in the CISA catalog of actively exploited vulnerabilities since 2022-01-21.

CVSS v3.1 (CISA ADP)
9.8
critical
EPSS (exploit probability, 30 days)
75%
higher than 99.5% of all CVEs
Added to CISA KEV
2022-01-21
US federal due date 2022-07-21
Automatable (CISA SSVC)
yes
technical impact: total

CVE-2012-0391 explained

CVE-2012-0391 is a code injection flaw in the ExceptionDelegator component of Apache Struts 2. During certain exception handling for mismatched property data types, parameter values are interpreted as OGNL expressions. Remote attackers can use this to run arbitrary Java code, and CISA lists the vulnerability as known to be exploited.

Impact

An unauthenticated remote attacker can execute arbitrary Java code by sending a crafted parameter to an affected application. No user interaction is needed and attack complexity is low. CISA rates the flaw as automatable, meaning attackers can exploit it at scale, with total technical impact. That means full control of the affected component and loss of confidentiality, integrity and availability. Attackers are known to use this vulnerability.

Who is affected

The description names Apache Struts versions before 2.2.3.1 as affected. The CVE record itself lists no structured affected versions for Apache Struts 2, and it names no fixed version. Check the vendor advisory to confirm which release contains the fix for your deployment.

Written with AI from the data on this page and checked against it automatically.

Official 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.

CISA required action: Apply updates per vendor instructions.

CISA notes

How to fix it

  • The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
  • Vendor advisory: struts.apache.org/2.x/docs/version-notes-2311.html
  • CISA's deadline for US federal agencies: 2022-07-21 (passed) – a useful benchmark for everyone else, too.

What to do

  1. Identify all applications that bundle Apache Struts 2 and record their Struts versions.
  2. Apply updates per vendor instructions, as CISA requires, and confirm the fixed release in the vendor advisory.
  3. Prioritise internet-facing Struts applications, since exploitation needs no authentication and is automatable.
  4. Restrict network access to affected applications until they are updated.
  5. Check affected servers for signs of compromise, such as unexpected processes, files or outbound connections.

The CVE record names no fixed version. Follow the vendor advisory to find the release that resolves the flaw, and apply updates per vendor instructions, as CISA requires. Until you have updated, limit network exposure of Struts-based applications and monitor them closely for signs of compromise.

Written with AI from the data on this page and checked against it automatically.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-94 Improper Control of Generation of Code ('Code Injection')

Questions about CVE-2012-0391

Is CVE-2012-0391 being exploited?
Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-01-21. The due date for US federal agencies was 2022-07-21. Whether it has been used in ransomware campaigns is unknown.
Does an attacker need credentials?
No. The flaw can be exploited remotely over the network without privileges or user interaction, by sending a crafted parameter.
Which versions should I avoid?
The description says Apache Struts before 2.2.3.1 is affected. The CVE record names no fixed version, so confirm the fixed release in the vendor advisory.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.