CVE-2013-1966: Arbitrary code execution in Apache Struts

Summary

14/05/2022
Yes i
High
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback