CVE-2014-0112 ClassLoader manipulation in Apache Struts

High 7.5 Published Updated

Remote attackers can execute arbitrary code by manipulating the ClassLoader via crafted requests 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-0112?

CVE-2014-0112 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

ParametersInterceptor in Apache Struts before 2.3.20 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-0112?

2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 1 product.

PackageAffectedFixed in
org.apache.struts:struts2-core MavenAll versions2.3.20
org.apache.struts:struts2-core MavenAll versions2.3.20

Products include Apache Struts.

How do I fix CVE-2014-0112?

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-0112 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2014-0112 exists.

Public exploit code: 1 Metasploit module and 2 Exploit-DB entries.

All Apache Struts vulnerabilities

Sources

Also known as GHSA-prjv-jj26-wf8h.

Is CVE-2014-0112 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free