Skip to content
On CISA KEVCritical

CVE-2012-0391Struts Code Injection

Apache Struts Remote Java Code Execution

Published Jan 8, 2012 · Updated May 5, 2026 · Also known as GHSA-4wrr-9h5r-m92w

Key Facts

Patch immediately
  • CVE-2012-0391 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Struts (Apache), org.apache.struts:struts2-core (maven), org.apache.struts.xwork:xwork-core (maven).
  • It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Oct 13, 2021. Public exploit code is available.
  • EPSS estimates a 77% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Struts 2.2.3.1, org.apache.struts:struts2-core 2.2.3.1, org.apache.struts.xwork:xwork-core 2.2.3.1.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

77%

Higher than 99.5% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

77/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Jan 21, 2022

3666 days after publication

Federal due date

Jul 21, 2022

Overdue

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

3

Proof-of-concept links

In-the-wild evidence

4

Reports of active use

Required action (CISA): Apply updates per vendor instructions.

Advisories And Exploit References

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
CISA KEVJan 21, 2022Jul 21, 2022Not reported
Industry KEV feedOct 13, 2021Jul 21, 2022Not reported
CIRCL KEVJan 21, 2022Jul 21, 2022Not reported
ENISA EUVDJan 21, 2022n/aNot reported

Required action: Apply updates per vendor instructions.

Affected Products

3 affected entries in total
ProductAffected versionsFixed in
StrutsApacheSee advisory2.2.3.1
org.apache.struts:struts2-coremavenSee advisory2.2.3.1
org.apache.struts.xwork:xwork-coremavenSee advisory2.2.3.1

Patched Releases

Struts

2.2.3.1

org.apache.struts:struts2-core

2.2.3.1

org.apache.struts.xwork:xwork-core

2.2.3.1

Timeline

  1. Publicly disclosed

    Jan 8, 2012

  2. Added to Industry KEV feed

    Oct 13, 2021

  3. Added to CISA KEV

    Jan 21, 2022

  4. Added to CIRCL KEV

    Jan 21, 2022

  5. Added to ENISA EUVD

    Jan 21, 2022

  6. Last updated

    May 5, 2026

Weakness Type

  • CWE-20 Improper Input Validation
  • CWE-94 Improper Control of Generation of Code

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2012-0391 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.