CVE-2013-1965 Improper Control of Generation of Code in Apache Struts

Critical 9.3 Published Updated

Remote attackers can execute arbitrary OGNL code via crafted parameters in the Apache Struts Showcase App, 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-1965?

CVE-2013-1965 is a critical 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 Showcase App 2.0.0 through 2.3.13, as used in Struts 2 before 2.3.14.3, allows remote attackers to execute arbitrary OGNL code via a crafted parameter name that is not properly handled when invoking a redirect.

Weakness: CWE-94

Which versions are affected by CVE-2013-1965?

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

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

Products include Apache Struts, Apache Struts2-Showcase.

How do I fix CVE-2013-1965?

Upgrade org.apache.struts:struts2-core to 2.3.14.3 or later.

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

Is CVE-2013-1965 being exploited?

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

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

All Apache Struts vulnerabilities

Sources

Also known as GHSA-whmq-v94q-34p9.

Is CVE-2013-1965 in your software?

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

Check your SBOMs for free