CVE-2013-2115 Code injection in Apache Struts

High 8.1 Published Updated

Remote attackers can execute arbitrary OGNL code via crafted requests in Apache Struts 2, leading to full system compromise.

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

What is CVE-2013-2115?

CVE-2013-2115 is a high-severity code injection vulnerability in Apache Struts, published on 10 Jul 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Struts 2 before 2.3.14.2 allows remote attackers to execute arbitrary OGNL code via a crafted request that is not properly handled when using the includeParams attribute in the (1) URL or (2) A tag. NOTE: this issue is due to an incomplete fix for CVE-2013-1966.

Weakness: CWE-94

Which versions are affected by CVE-2013-2115?

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.14.2
org.apache.struts.xwork:xwork-core MavenFrom 2.0.02.3.14.2
org.apache.struts:struts2-core MavenFrom 2.0.02.3.14.2
org.apache.struts:struts2-core MavenFrom 2.0.02.3.14.2

Products include Apache Struts.

How do I fix CVE-2013-2115?

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

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

Is CVE-2013-2115 being exploited?

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

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

All Apache Struts vulnerabilities

Sources

Also known as GHSA-7ghm-rpc7-p7g5.

Is CVE-2013-2115 in your software?

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

Check your SBOMs for free