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

Published Jan 8, 2012
·
Updated

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.

Other sources

The ExceptionDelegator component in Apache Struts 2 before 2.2.3.1 contains an improper input validation vulnerability that allows for remote code execution.

CISA

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.

Affected Software

5 affected componentsFixes available
maven/org.apache.struts.xwork:xwork-core<2.2.3.1
2.2.3.1
maven/org.apache.struts:struts2-core<2.2.3.1
2.2.3.1
Apache struts>=2.0.0<2.2.3.1
Apache struts<2.2.3.1
Apache Struts 2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.struts.xwork:xwork-core to a version that resolves this vulnerability.

    Fixed in 2.2.3.1
  2. Upgrade

    Upgrade maven/org.apache.struts:struts2-core to a version that resolves this vulnerability.

    Fixed in 2.2.3.1

Event History

Jan 8, 2012
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via NVD·03:55 PM
DescriptionSeverityWeaknessAffected Software
Jan 21, 2022
Known Exploited
via CISA·12:00 AM
May 4, 2022
Advisory Published
12:29 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2012-0391?

CVE-2012-0391 is classified as a critical vulnerability in Apache Struts.

2

How do I fix CVE-2012-0391?

To fix CVE-2012-0391, update Apache Struts to version 2.2.3.1 or later.

3

What types of attacks does CVE-2012-0391 enable?

CVE-2012-0391 allows remote attackers to execute arbitrary Java code via crafted parameters.

4

Which versions of Apache Struts are affected by CVE-2012-0391?

Apache Struts versions prior to 2.2.3.1 are affected by CVE-2012-0391.

5

What component of Apache Struts is vulnerable in CVE-2012-0391?

The vulnerable component in CVE-2012-0391 is the ExceptionDelegator component.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203