CVE-2013-2251 Apache Struts Improper Input Validation

Exploited in the wild Critical 9.8 Published Updated

Remote attackers can execute arbitrary OGNL expressions via crafted parameters, leading to remote code execution in Apache Struts applications.

Exploited in the wild
Since 25 Mar 2022
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2013-2251?

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

Official description

Apache Struts 2.0.0 through 2.3.15 allows remote attackers to execute arbitrary OGNL expressions via a parameter with a crafted (1) action:, (2) redirect:, or (3) redirectAction: prefix.

Weakness: CWE-74

Which versions are affected by CVE-2013-2251?

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

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

Products include Apache Archiva, Apache Struts, Fujitsu Interstage Business Process Manager Analytics, Oracle Siebel Apps - E-Billing.

How do I fix CVE-2013-2251?

Upgrade org.apache.struts:struts2-core to 2.3.15.1 or later. US federal agencies must fix it by 15 Apr 2022.

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

Is CVE-2013-2251 being exploited?

Yes. Attackers have exploited CVE-2013-2251 in the wild since at least 25 Mar 2022.

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

All Apache Struts vulnerabilities

Sources

Also known as GHSA-47qp-8v9g-39hp.

Is CVE-2013-2251 in your software?

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

Check your SBOMs for free