9.8

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

KEV
Analyzed
AliasesGHSA-4wrr-9h5r-m92w
Published 08-01-2012Last modified 22-10-2025

Vulnerability summary

CVE-2012-0391 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in Apache Struts 2. It is known to be exploited: CISA lists it, first on 21-01-2022. EPSS estimates a 76.54% chance of exploitation in the next 30 days, higher than 99.5% of scored vulnerabilities. 5 public exploits are recorded.

Priority
Act nowlisted as exploited

Listed as exploited by CISA (21-01-2022)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
76.54%
0%100%
Critical · +0.94 pp in 30 days
KEVExploited in the wildCritical · listed in 1 catalog
RansomwareNot flaggedNo ransomware use recorded.
Public exploits5reference, exploit-database, metasploit

Timeline

  1. 08-01-2012
    PublishedVulnerability first disclosed.
  2. 21-01-2022
    Added to CISA KEVExploitedApache Struts 2 Improper Input Validation Vulnerability
  3. 21-07-2022
    CISA remediation dueDeadline passedApply updates per vendor instructions.
  4. 22-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

76.54%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

Increase +0.94 pp

From 75.60% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
21-01-2022
Federal due date
21-07-2022
ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

CISA required action

Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2012-0391

Public exploits

5 found
  • referenceUnverified

    Exploit Reference (archives.neohapsis.com)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (sec-consult.com)

    Maturity: unknown

  • exploit-databaseremotemultipleVerified

    Apache Struts 2.2.1.1 - Remote Command Execution (Metasploit)

    Maturity: weaponized

Show all 5 exploits
  • exploit-databasemultipleVerified

    Apache Struts 2 < 2.3.1 - Multiple Vulnerabilities

    Maturity: poc

  • MetasploitMetasploitremoteVerified

    Apache Struts Remote Command Execution

    exploit/multi/http/struts_code_exec_exception_delegator

    Maturity: weaponized

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Apache1 product
Org.apache.struts1 product
  • struts2-core< 2.2.3.1
Org.apache.struts.xwork1 product
  • xwork-core< 2.2.3.1

3 vendors · 3 products

References

13 links
Show all 13 references