CVE-2012-0394 Apache Struts's DebuggingInterceptor component allows remote code execution in developer mode

Medium 6.8 Published Updated

Remote attackers can execute arbitrary commands in Apache Struts when developer mode is enabled, requiring an upgrade to secure the application.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-0394?

CVE-2012-0394 is a medium-severity command injection vulnerability in Apache Struts, published on 8 Jan 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The DebuggingInterceptor component in Apache Struts before 2.3.1.1, when developer mode is used, allows remote attackers to execute arbitrary commands via unspecified vectors. NOTE: the vendor characterizes this behavior as not "a security vulnerability itself.

Weakness: CWE-94

Which versions are affected by CVE-2012-0394?

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

PackageAffectedFixed in
org.apache.struts.xwork:xwork-core MavenAll versions2.3.18
org.apache.struts.xwork:xwork-core MavenAll versions2.3.18

Products include Apache Struts.

How do I fix CVE-2012-0394?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2012-0394 being exploited?

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

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

All Apache Struts vulnerabilities

Sources

Also known as GHSA-hmvj-gc9q-mg9p.

Is CVE-2012-0394 in your software?

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

Check your SBOMs for free