CVE-2014-0113 ClassLoader manipulation in Apache Struts
Remote attackers can execute arbitrary code via crafted requests when wildcard cookiesName is configured, affecting Apache Struts users.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2014-0113?
CVE-2014-0113 is a high-severity code injection vulnerability in Apache Struts, published on 29 Apr 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
CookieInterceptor in Apache Struts before 2.3.20, when a wildcard cookiesName value is used, does not properly restrict access to the getClass method, which allows remote attackers to "manipulate" the ClassLoader and execute arbitrary code via a crafted request. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-0094.
Weakness: CWE-264
Which versions are affected by CVE-2014-0113?
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.3.20 |
org.apache.struts:struts2-core Maven | All versions | 2.3.20 |
Products include Apache Struts.
How do I fix CVE-2014-0113?
Upgrade org.apache.struts:struts2-core to 2.3.20 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2014-0113 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2014-0113 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Apache Struts
Sources
Also known as GHSA-3c5c-xrq4-qhr8.