CVE-2014-0094 ClassLoader manipulation in Apache Struts

Medium 5.0 Published Updated

Remote attackers can manipulate the ClassLoader to execute arbitrary code in applications using 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-0094?

CVE-2014-0094 is a medium-severity code injection vulnerability in Apache Struts, published on 10 Mar 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The ParametersInterceptor in Apache Struts before 2.3.16.2 allows remote attackers to "manipulate" the ClassLoader via the class parameter, which is passed to the getClass method.

Which versions are affected by CVE-2014-0094?

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

PackageAffectedFixed in
org.apache.struts.xwork:xwork-core MavenFrom 2.0.02.3.16.2
org.apache.struts.xwork:xwork-core MavenFrom 2.0.02.3.16.2
org.apache.struts:struts2-core MavenFrom 2.0.02.3.16.2
org.apache.struts:struts2-core MavenFrom 2.0.02.3.16.2

Products include Apache Struts.

How do I fix CVE-2014-0094?

Upgrade org.apache.struts.xwork:xwork-core to 2.3.16.2 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2014-0094 being exploited?

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

Public exploit code: 1 Metasploit module, 2 Exploit-DB entries and 2 proofs of concept on GitHub.

All Apache Struts vulnerabilities

Sources

Also known as GHSA-vrwc-qjmw-5rjm.

Is CVE-2014-0094 in your software?

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

Check your SBOMs for free