CVE-2021-40865: Deserialization of Untrusted Data leading to Remote Code Execution in Apache Storm

org.apache.storm:storm Updated 02 Oct 2025

Summary

27/10/2021
Yes i
Critical
9.8

CVE-2021-40865: Deserialization of Untrusted Data leading to Remote Code Execution in Apache Storm. Affects org.apache.storm:storm across 3 version ranges.

>= 1.0.0, < 1.2.4 >= 2.1.0, < 2.1.1 >= 2.2.0, < 2.2.1

Fixed in 1.2.4, 2.1.1 or 2.2.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 Storm is a distributed real-time computation system used for processing large volumes of data. It provides fault-tolerance, scalability, and guarantees data processing even in the event of failures. The vulnerability in Apache Storm allows for unsafe deserialization of untrusted data, which can lead to remote code execution. This vulnerability affects versions 1.x, 2.1.x, and 2.2.x of the Apache Storm package.

Vulnerability Detail

The vulnerability arises from an unsafe deserialization process in the worker services of the Apache Storm supervisor server. An attacker can exploit this vulnerability to execute arbitrary code remotely without authentication. This can result in a complete compromise of the affected system, leading to unauthorized access, data theft, or further network exploitation. The Common Vulnerabilities and Exposures (CVE) identifier for this vulnerability is CVE-2021-40865. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

Latest published version: 3.1.0 as of 23 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.

  • >= 1.0.0, < 1.2.4 1.2.4
  • >= 2.1.0, < 2.1.1 2.1.1
  • >= 2.2.0, < 2.2.1 2.2.1

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

Workaround

There is no known workaround for this vulnerability. It is recommended to apply the necessary upgrades as mentioned in the 'how_to_fix' section.

Conclusion

The Apache Storm package is vulnerable to a critical remote code execution vulnerability. To mitigate the risk, it is crucial to upgrade to the fixed versions mentioned in the 'how_to_fix' section. Failure to address this vulnerability may result in unauthorized access, data theft, or further network exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.storm:storm →

Share this vulnerability

FAQ

Apache Storm is a distributed real-time computation system used for processing large volumes of data. It provides fault-tolerance, scalability, and guarantees data processing even in the event of failures.

The vulnerability allows for remote code execution, which can lead to unauthorized access, data theft, or further network exploitation. It has a critical severity rating with a CVSS score of 9.8.

Versions 1.x, 2.1.x, and 2.2.x of Apache Storm are affected by this vulnerability.

To fix this vulnerability, users should upgrade their Apache Storm installations to the recommended fixed versions: 2.2.1 or 2.3.0 for 2.2.x, 2.1.1 for 2.1.x, and 1.2.4 for 1.x.

No, there is no known workaround for this vulnerability. Upgrading to the fixed versions is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.storm:storm.

How To Fix

Latest published version: 3.1.0 as of 23 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.

  • >= 1.0.0, < 1.2.4 1.2.4
  • >= 2.1.0, < 2.1.1 2.1.1
  • >= 2.2.0, < 2.2.1 2.2.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