CVE-2012-0391

struts: User input is evaluated as an OGNL expression when there's a conversion error

Published Jan 8, 2012 CVSS 3.1 · 9.8 Critical EPSS 75.6% KEV · Listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4wrr-9h5r-m92w Apache Struts Remote Java Code Execution
History
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

kev

{'dateAdded': '2022-01-21'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'active', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 22, 2025, 12:05 AM
Reserved
Jan 8, 2012, 12:00 AM
Status
Analyzed
Published
Jan 8, 2012, 3:55 PM
Modified
Jun 16, 2026, 11:37 PM
Severity
Important
Public date
Aug 5, 2011, 12:00 AM