CVE-2013-1966: Arbitrary code execution in Apache Struts
Summary
CVE-2013-1966: Arbitrary code execution in Apache Struts. Affects org.apache.struts:struts2-core versions >= 2.0.0, < 2.3.14.2. Fixed in 2.3.14.2. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache Struts is an open-source framework for developing Java web applications. It provides a set of reusable components and a MVC (Model-View-Controller) architecture for building scalable and maintainable web applications. The struts2-core package is a core component of Apache Struts 2. It handles the processing of requests and the rendering of views. Unfortunately, versions of Apache Struts 2 before 2.3.14.2 are vulnerable to arbitrary code execution.
Vulnerability Detail
The vulnerability (CVE-2013-1966) allows remote attackers to execute arbitrary OGNL (Object-Graph Navigation Language) code. This can be exploited by sending a crafted request that is not properly handled when using the includeParams attribute in the URL or A tag. An attacker can exploit this vulnerability to execute malicious code on the server, potentially leading to unauthorized access, data leakage, or further compromise of the system.
How To Fix
Latest published version: 7.4.0 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.3.14.2
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If upgrading to the latest version is not feasible, you can apply a workaround by disabling the includeParams attribute in the affected URLs or A tags. This can be done by modifying the configuration files of your Apache Struts 2 application. Here's an example of how to disable the includeParams attribute in struts.xml:
Conclusion
In conclusion, Apache Struts 2 versions before 2.3.14.2 are vulnerable to arbitrary code execution. It is crucial to upgrade to the latest version or apply the workaround to mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.struts:struts2-core →
FAQ
Apache Struts is an open-source framework for developing Java web applications. It provides a set of reusable components and a MVC architecture for building scalable and maintainable web applications.
OGNL (Object-Graph Navigation Language) is a powerful expression language used in Apache Struts for accessing and manipulating objects. It allows developers to dynamically evaluate expressions and perform actions on objects.
The vulnerability occurs due to improper handling of the includeParams attribute in the URL or A tag. Attackers can exploit this vulnerability by sending a crafted request containing malicious OGNL code.
The vulnerability can lead to arbitrary code execution on the server, allowing attackers to gain unauthorized access, leak sensitive data, or further compromise the system.
To protect your application, it is recommended to upgrade to Apache Struts 2 version 2.3.14.2 or later. If upgrading is not feasible, you can apply the workaround mentioned above to disable the includeParams attribute.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.struts:struts2-core.