CVE-2012-0391
struts: User input is evaluated as an OGNL expression when there's a conversion error
Overview
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: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-94
Affected packages · 2
| Ecosystem | Package | Vulnerable | 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 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- archives.neohapsis.com http://archives.neohapsis.com/archives/bugtraq/2012-01/0031.html
- secunia.com http://secunia.com/advisories/47393
- struts.apache.org http://struts.apache.org/2.x/docs/s2-008.html
- struts.apache.org http://struts.apache.org/2.x/docs/version-notes-2311.html
- www.exploit-db.com http://www.exploit-db.com/exploits/18329
- access.redhat.com https://access.redhat.com/security/cve/CVE-2012-0391
- github.com https://github.com/apache/struts
- github.com https://github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e
- github.com https://github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b
- github.com https://github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892
Show all 16 references
- issues.apache.org https://issues.apache.org/jira/browse/WW-3668
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2012-0391
- www.cisa.gov https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- www.cisa.gov https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2012-0391
- www.sec-consult.com https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.