CVE-2012-0391 kev in the critical feed json
Apache Struts Remote Java Code Execution
published 2012-01-08 14 y ago modified 2026-06-16 4 mo ago also GHSA-4wrr-9h5r-m92w , EUVD-2022-2464
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Exploited
- added 2022-01-21
- epss
- 75.6%
- EPSS 75.6% chance of exploitation in 30 days, percentile 99.5%
- public exploits
- 3
- Metasploit, Exploit-DB
Summary
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.
Patch / fix
cisa required action Apply updates per vendor instructions.
- maven org.apache.struts:struts2-core 2.2.3.1
- maven org.apache.struts.xwork:xwork-core 2.2.3.1
- apache struts 2.2.3.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-0391 updated cvss 6.8
struts: User input is evaluated as an OGNL expression when there's a conversion error
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (Metasploit exploit/multi/http/struts_code_exec_exception_delegator)
- Published
- Added to CISA KEV
- CISA patch deadline
- CISA SSVC: exploitation active
Known exploited
- Added
- 4 y ago
- Patch by
- 2022-07-21 (4 y ago)
- Ransomware
- Not known
- Required action
- Apply updates per vendor instructions.
- Vendor, product
- Apache, Struts 2
- CISA name
- Apache Struts 2 Improper Input Validation Vulnerability
CISA SSVC
- Exploitation
- Active, exploited in the wild
- Automatable
- yes
- Technical impact
- total
- Assessed
- 20 mo ago
Exploit prediction
75.60% chance of exploitation in the next 30 days, higher than 99.5% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit exploit/multi/http/struts_code_exec_exception_delegator Apache Struts Remote Command Execution metasploit exploit, excellent rank, 2012-01-06
- EDB-18984 Apache Struts 2.2.1.1 - Remote Command Execution (Metasploit) remote, 2012-06-05
- EDB-18329 Apache Struts 2 < 2.3.1 - Multiple Vulnerabilities webapps, 2012-01-06
- archives.neohapsis.com http://archives.neohapsis.com/archives/bugtraq/2012-01/0031.html referenced PoC, tagged "exploit" by a source, unverified
- sec-consult.com https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.struts:struts2-core | <2.2.3.1 |
2.2.3.1 |
| maven | org.apache.struts.xwork:xwork-core | <2.2.3.1 |
2.2.3.1 |
Classification
References
-
github.com
/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e
web
-
github.com
/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b
web
-
github.com
/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892
web
-
exploit-db.com
/exploits/18329
exploit, web
-
archives.neohapsis.com
/archives/bugtraq/2012-01/0031.html
mailing-list, web, broken-link, exploit
-
sec-consult.com
/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt
web, broken-link, exploit
-
struts.apache.org
/2.x/docs/version-notes-2311.html
web, vendor-advisory
-
struts.apache.org
/2.x/docs/s2-008.html
web, vendor-advisory
-
issues.apache.org
/jira/browse/WW-3668
web, vendor-advisory
-
secunia.com
/advisories/47393
third-party-advisory, web, vendor-advisory
-
cisa.gov
/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391
government-resource, web, us-government-resource
-
nvd.nist.gov
/vuln/detail/CVE-2012-0391
advisory
-
github.com
/apache/struts
package
Sources
- CVE List CVE-2012-0391
- GitHub Advisory GHSA-4wrr-9h5r-m92w
- NVD CVE-2012-0391
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.