Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.struts/struts2-core
  4. ›
  5. CVE-2012-0391

CVE-2012-0391: Apache Struts Remote Java Code Execution

May 4, 2022 (updated October 22, 2025)

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.

References

  • github.com/advisories/GHSA-4wrr-9h5r-m92w
  • github.com/apache/struts
  • github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e
  • github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b
  • github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892
  • issues.apache.org/jira/browse/WW-3668
  • nvd.nist.gov/vuln/detail/CVE-2012-0391
  • www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391
  • www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt

Code Behaviors & Features

Detect and mitigate CVE-2012-0391 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.3.1

Fixed versions

  • 2.2.3.1

Solution

Upgrade to version 2.2.3.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

maven/org.apache.struts/struts2-core/CVE-2012-0391.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 10 Dec 2025 00:18:42 +0000.