CVE-2010-1870 Server side object manipulation in Apache Struts
Remote attackers can execute arbitrary code by exploiting OGNL expression evaluation flaws in the Struts 2 framework.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2010-1870?
CVE-2010-1870 is a medium-severity code injection vulnerability in Apache Struts, published on 17 Aug 2010. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The OGNL extensive expression evaluation capability in XWork in Struts 2.0.0 through 2.1.8.1, as used in Atlassian Fisheye, Crucible, and possibly other products, uses a permissive whitelist, which allows remote attackers to modify server-side context objects and bypass the "#" protection mechanism in ParameterInterceptors via the (1) #context, (2) #_memberAccess, (3) #root, (4) #this, (5) #_typeResolver, (6) #_classResolver, (7) #_traceEvaluations, (8) #_lastEvaluation, (9) #_keepLastEvaluation, and possibly other OGNL context variables, a different vulnerability than CVE-2008-6504.
Which versions are affected by CVE-2010-1870?
2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.struts:struts2-core Maven | All versions | 2.2.1 |
org.apache.struts:struts2-core Maven | All versions | 2.2.1 |
Products include Apache Struts.
How do I fix CVE-2010-1870?
Upgrade org.apache.struts:struts2-core to 2.2.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2010-1870 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2010-1870 exists.
Public exploit code: 1 Metasploit module, 2 Exploit-DB entries and 1 Nuclei template.
Other vulnerabilities in Apache Struts
Sources
Also known as GHSA-x5fc-pgpx-59j5.