Vulnerabilities

Vulnerability · CVE-2012-0391

Apache Struts 2 Improper Input Validation Vulnerability

Published Jan 8, 2012 · catalog updated Jun 16, 2026 · Apache Struts 2

Patch now

CVE-2012-0391 is in the CISA known-exploited catalog, due Jul 21, 2022. Confirm Apache Struts 2 against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Gaps on this record

  • No version range is stored. A customer cannot check an installed version against this record.
Severity
Critical9.8
Known exploitation
CISA KEV and VulnCheck KEV
EPSS
75.60%
Remediation
Remediation guidance
Affected products
cpe apache/struts · vendor Apache Struts 2 · vendor n/a n/a

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • cpe apache/strutsversion unspecified
  • vendor Apache Struts 2version unspecified
  • vendor n/a n/aversion unspecified

How to fix CVE-2012-0391

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2012-0391 is in the CISA known-exploited catalog, due Jul 21, 2022. Confirm Apache Struts 2 against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Which versions are affected?

Affected version ranges are not on this record. Apply updates per vendor instructions.

What should an analyst verify?

CWE-20: Improper Input Validation; CWE-94: Code Injection. EPSS 75.60%. The CISA KEV listing is the exploitation evidence. A public exploit reference is linked in Sources. That is not the same as confirmed exploitation. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Jan 8, 2012 · Catalog

    Detected

    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.

  2. Jan 21, 2022 · CISA KEV

    Known exploited

    Apply updates per vendor instructions.

  3. Jul 21, 2022 · CISA KEV

    Remediation due

    Apply updates per vendor instructions.

  4. Jun 16, 2026 · Catalog

    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.

Sources

  • CISA KEVConfirmed exploitationCVE-2012-0391

    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.gov
  • CVE.orgVulnerability recordCVE-2012-0391

    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.

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2012-0391

    30-day exploitation probability 75.6%

    first.org
  • Exploit DatabasePublic exploit reference18329

    Public archive entry. The exploit body is not stored here.

    exploit-db.com
  • Exploit DatabasePublic exploit reference18984

    Public archive entry. The exploit body is not stored here.

    exploit-db.com
  • Metasploit ModulesPublic exploit moduleexploit_multi/http/struts_code_exec_exception_delegator

    Public module reference (excellent). Module source is not copied into this catalog.

    rapid7.com
  • NIST NVDVulnerability recordCVE-2012-0391

    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.

    nvd.nist.gov
  • VulnCheck KEVConfirmed exploitationCVE-2012-0391

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

    vulncheck.com

References

Freshness

Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.