Skip to content
Vulnerability Intelligence

CVE-2012-0391

CriticalExploitedPublic exploit

Apache Struts Remote Java Code Execution

Published May 4, 2022 · 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 76% 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.

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)

76%

Higher than 99.5% of all scored CVEs

Exploited in the wild

Yes

4 catalog listings

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2012-0391 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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. Added to Industry KEV feed

    Oct 13, 2021

  2. Added to CISA KEV

    Jan 21, 2022

  3. Added to CIRCL KEV

    Jan 21, 2022

  4. Added to ENISA EUVD

    Jan 21, 2022

  5. Publicly disclosed

    May 4, 2022

  6. Last updated

    May 5, 2026

Weakness Type

  • CWE-20 Improper Input Validation
  • CWE-94 Improper Control of Generation of Code ('Code Injection')

References

14 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2012-0391 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo