CVE-2013-2135 Arbitrary code execution in Apache Struts 2
Remote attackers can execute arbitrary OGNL code in Apache Struts 2 via crafted requests, 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-2135?
CVE-2013-2135 is a critical code injection vulnerability in Apache Struts, published on 16 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.3 allows remote attackers to execute arbitrary OGNL code via a request with a crafted value that contains both "${}" and "%{}" sequences, which causes the OGNL code to be evaluated twice.
Weakness: CWE-94
Which versions are affected by CVE-2013-2135?
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.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.struts.xwork:xwork-core Maven | From 2.0.0 | 2.3.14.3 |
org.apache.struts.xwork:xwork-core Maven | From 2.0.0 | 2.3.14.3 |
org.apache.struts:struts2-core Maven | From 2.0.0 | 2.3.14.3 |
org.apache.struts:struts2-core Maven | From 2.0.0 | 2.3.14.3 |
Products include Apache Struts.
How do I fix CVE-2013-2135?
Upgrade org.apache.struts.xwork:xwork-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-2135 being exploited?
There is no known exploitation of CVE-2013-2135 in the wild and no public exploit code.
Other vulnerabilities in Apache Struts
Sources
Also known as GHSA-pw8r-x2qm-3h5m.