CVE-2014-0116 ClassLoader manipulation in Apache Struts
Remote attackers can manipulate the ClassLoader and modify session state via crafted requests when wildcard cookiesName is used in Apache Struts.
- 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-0116?
CVE-2014-0116 is a medium-severity code injection vulnerability in Apache Struts, published on 8 May 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
CookieInterceptor in Apache Struts 2.x 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 modify session state via a crafted request. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-0113.
Weakness: CWE-264
Which versions are affected by CVE-2014-0116?
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-0116?
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-0116 being exploited?
There is no known exploitation of CVE-2014-0116 in the wild and no public exploit code.
Other vulnerabilities in Apache Struts
Sources
Also known as GHSA-hmhq-382q-mp56.