CVE-2012-0391Apache Struts 2
Remote Code Execution in Apache Struts 2 via OGNL Injection
Critical 9.8 KEV No auth neededHigh EPSS
- Priority
- 81
- CVSS 3.1
- 9.8
- EPSS
- 76.5% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- In KEV since
- Jan 21, 2022
- CISA deadline
- Jul 21, 2022
- Ransomware use
- Unknown
- Published
- Jan 8, 2012
- Updated
- Jun 16, 2026
- Category
- Server · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: active · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
The ExceptionDelegator component in Apache Struts 2 before 2.2.3.1 interprets parameter values as OGNL expressions during exception handling for mismatched data types. A remote unauthenticated attacker can execute arbitrary Java code via crafted parameters. CISA confirmed this vulnerability as actively exploited.
AI-generated summary (Claude) based on NVD and CISA data. Not reviewed yet: check the details in the vendor advisory.
Show the original NVD text
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.
Exploitation confirmed by CISA
The ExceptionDelegator component in Apache Struts 2 before 2.2.3.1 contains an improper input validation vulnerability that allows for remote code execution.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available · fixed versions: 2.2.3.1
Update Apache Struts 2 to version 2.2.3.1 or later. Refer to the vendor advisory for detailed upgrade instructions.
Vendor advisory · struts.apache.org ↗
AI-generated from public data; not reviewed.
- Apply the vendor's security update for Struts 2.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was July 21, 2022.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| 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 |
— |
Per OSV / GitHub Advisories (GHSA-4wrr-9h5r-m92w). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | struts | < 2.2.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- archives.neohapsis.com Broken Link Exploit
- secunia.com Vendor Advisory
- struts.apache.org Vendor Advisory
- struts.apache.org Vendor Advisory
- www.exploit-db.com Exploit
- issues.apache.org Vendor Advisory
- www.sec-consult.com Broken Link Exploit
- www.cisa.gov US Government Resource