CVE-2016-3082: Remote Code Execution in Apache Struts

Summary

17/05/2022
Yes i
Critical
9.8

CVE-2016-3082: Remote Code Execution in Apache Struts. Affects org.apache.struts:struts2-core across 3 version ranges.

< 2.3.20.3 >= 2.3.24, < 2.3.24.3 >= 2.3.28, < 2.3.28.1

Fixed in 2.3.20.3, 2.3.24.3 or 2.3.28.1, depending on the release line you run. 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 Apache Struts struts2-core package is a core component of the framework. It is widely used in various web applications.

Vulnerability Detail

The vulnerability with CVE-2016-3082, also known as GHSA-pvm9-288c-v5wq, allows for remote code execution in Apache Struts. The XSLTResult feature of the framework allows the location of a stylesheet to be passed as a request parameter. In certain circumstances, this can be exploited to inject remotely executable code. An attacker could craft a malicious request that includes a specially crafted stylesheet parameter, leading to the execution of arbitrary code on the server. This vulnerability has a CVSSv3 severity score of 9.8 (Critical).

How To Fix

Latest published version: 7.4.0 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.3.20.3 2.3.20.3
  • >= 2.3.24, < 2.3.24.3 2.3.24.3
  • >= 2.3.28, < 2.3.28.1 2.3.28.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to a fixed version is not immediately feasible, a possible workaround is to disable the XSLTResult feature in the Apache Struts configuration. This can be done by modifying the struts.xml configuration file and removing or commenting out the XSLTResult configuration. However, this workaround may impact the functionality of the application, and it is strongly recommended to upgrade to a fixed version as soon as possible.

Conclusion

The vulnerability CVE-2016-3082 in Apache Struts allows for remote code execution, posing a significant risk to applications using the affected versions of the struts2-core package. It is crucial to upgrade to a fixed version (2.3.20.3, 2.3.24.3, or 2.3.28.1) to mitigate the risk. Secure coding practices and input validation should also be followed to prevent code injection vulnerabilities. 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.

This vulnerability allows for remote code execution in Apache Struts. An attacker could exploit this vulnerability to execute arbitrary code on the server, potentially leading to unauthorized access, data breaches, or further compromise of the system.

To fix this vulnerability, it is recommended to upgrade the Apache Struts struts2-core package to a version that includes the fix. The fixed versions are 2.3.20.3, 2.3.24.3, and 2.3.28.1. Update your application's dependencies to use one of these versions.

If upgrading to a fixed version is not immediately feasible, you can disable the XSLTResult feature in the Apache Struts configuration. However, this may impact the functionality of your application, and it is strongly recommended to upgrade to a fixed version as soon as possible.

This vulnerability has a CVSSv3 severity score of 9.8 (Critical), indicating a high level of risk and potential impact.

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 versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.3.20.3 2.3.20.3
  • >= 2.3.24, < 2.3.24.3 2.3.24.3
  • >= 2.3.28, < 2.3.28.1 2.3.28.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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