BreachSpiderVerified, not vibes

CVE-2012-0391 in Apache Struts

Known-exploited (CISA) since 2022-01-21 Critical 9.8 Public exploit reported

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.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.8
EPSS76.5%
EPSS percentile100th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Apache Struts < 2.2.3.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedYes added 2022-01-21
Public exploitReported · reference

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2012-0391
BreachSpider IDBS-2012-GLOBAL-160194-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2012-01-08
Last modified2026-06-16
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-94: Code Injection

Attacker injects arbitrary code that is executed by the application process.

Related attack patterns (CAPEC)

CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94

CAPEC-77 Manipulating User-Controlled Variables via CWE-94

CAPEC-242 Code Injection via CWE-94

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2012-0391 affects the ExceptionDelegator component in Apache Struts versions prior to 2.2.3.1, allowing remote attackers to execute arbitrary Java code through crafted parameters. This vulnerability has a high CVSS score of 9.8 and is listed in the KEV catalog, indicating significant risk. Immediate action is required to mitigate potential exploitation.

The vulnerability arises from the ExceptionDelegator component in Apache Struts interpreting parameter values as OGNL expressions during exception handling for mismatched data types. This can be exploited by remote attackers to execute arbitrary Java code on the server, leading to full system compromise.

Compensating controls AI-drafted, review before use

Implement strict input validation and output encoding for all parameters processed by the web application. Use a Web Application Firewall (WAF) to detect and block suspicious requests that may contain OGNL expressions.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2012-0391?

CVE-2012-0391 affects the ExceptionDelegator component in Apache Struts versions prior to 2.2.3.1, allowing remote attackers to execute arbitrary Java code through crafted parameters. This vulnerability has a high CVSS score of 9.8 and is listed in the KEV catalog, indicating significant risk. Immediate action is required to mitigate potential exploitation.

What is the CVSS score for CVE-2012-0391?

CVE-2012-0391 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 76.5%.

Is CVE-2012-0391 actively exploited?

Yes. CVE-2012-0391 is in the CISA known-exploited catalog (added 2022-01-21). Active exploitation confirmed. Immediate patching required.

How do I remediate CVE-2012-0391?

Priority: IMMEDIATE. Advisory: http://struts.apache.org/2.x/docs/s2-008.html

What systems are affected by CVE-2012-0391?

CVE-2012-0391 affects Apache Struts.

What NERC-CIP standard applies to CVE-2012-0391?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to electronic security perimeters, potentially compromising critical cyber assets.

What IEC 62443 requirement maps to CVE-2012-0391?

IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves the protection against malicious software and unauthorized access, which is essential for maintaining the integrity and availability of industrial control systems.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Apache","product":"Struts","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.