9.8

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

CVSS: 9.8v3.1CriticalKEVAnalyzed
AliasesGHSA-4wrr-9h5r-m92w
Published 08-01-2012Last modified 22-10-2025

Vulnerability summary

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

Overall risk
85/100
0100
Critical · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
75.60%
0%100%
Critical · 0.00 pp in 30 days
KEVListedCISA
RansomwareNone recordedNo known use recorded
Public exploits5reference, exploit-database, metasploit

Timeline

  1. 08-01-2012
    PublishedVulnerability first disclosed.
  2. 21-01-2022
    Added to CISA KEVApache Struts 2 Improper Input Validation Vulnerability
  3. 21-07-2022
    CISA remediation dueApply 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

75.60%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

0.00 pp

From 75.60% on 19-09-2026

19-09-202619-10-2026
EPSS score
75.60%

Known exploited

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

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

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