Cyber Resilience

CVE-2021-40865

RCE in Apache Storm 1.0.0 – 1.2.4

Published
25 October 2021
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.66 99.2th percentile
Risk Priority 93 floored blend · peak EPSS

Summary

CVE-2021-40865 is a critical-severity Deserialization of Untrusted Data (CWE-502) vulnerability in Apache Storm. Its CVSS base score is 9.8 (Critical).

Operationally, ranked in the top 0.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

An Unsafe Deserialization vulnerability exists in the worker services of the Apache Storm supervisor server allowing pre-auth Remote Code Execution (RCE). Apache Storm 2.2.x users should upgrade to version 2.2.1 or 2.3.0. Apache Storm 2.1.x users should upgrade to version…

more

2.1.1. Apache Storm 1.x users should upgrade to version 1.2.4

CWE(s)

Related Threats

Likely ATT&CK TechniquesAI

Techniques this vulnerability likely enables, inferred from its description, weakness type, and attributed-actor tradecraft. Confidence is per-technique.

T1190 Exploit Public-Facing Application Initial Accessconfidence: HIGH
Unsafe deserialization in the Apache Storm supervisor worker service directly enables pre-auth remote code execution against a public-facing application.
T1059 Command and Scripting Interpreter Executionconfidence: HIGH
Successful exploitation results in arbitrary command/script execution on the supervisor host.
T1068 Exploitation for Privilege Escalation Privilege Escalationconfidence: HIGH
Remote code execution via deserialization grants the attacker code execution privileges on the Storm supervisor process.
inferred from description + CWE · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2026-35337Same product: Apache Storm
CVE-2026-41081Same product: Apache Storm
CVE-2026-35565Same product: Apache Storm
CVE-2023-43123Same product: Apache Storm
CVE-2021-38294Same product: Apache Storm
CVE-2024-42362Same vendor: Apache
CVE-2025-27818Same vendor: Apache
CVE-2026-40860Same vendor: Apache
CVE-2024-52338Same vendor: Apache
CVE-2026-40473Same vendor: Apache

Affected Assets

apache
storm
1.0.0 — 1.2.4 · 2.1.0 — 2.1.1 · 2.2.0 — 2.2.1

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-502

Penetration testing supplies malicious serialized objects, detecting unsafe deserialization and supporting corrective actions.

addresses: CWE-502

Evaluation of untrusted data handling (deserialization testing) reveals unsafe processing, which the required remediation process addresses.

addresses: CWE-502

Untrusted serialized data can be deserialized and observed inside the chamber, blocking gadget-chain exploitation outside the sandbox.

addresses: CWE-502

Validates or rejects untrusted serialized data before deserialization occurs.

addresses: CWE-502

Identifies and blocks malicious code introduced through deserialization of untrusted data at system boundaries.

addresses: CWE-502

Integrity verification of serialized information can detect tampering before deserialization occurs.

addresses: CWE-502

Provenance of associated data allows detection of untrusted sources before deserialization or processing occurs.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-02 none match
prevents

PR.PS-02 addresses only post-deployment updates/patching and cannot prevent introduction of unsafe deserialization code, yet it can remediate some instances when the flaw exists in outdated libraries or components.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing includes validation of deserialization routines and the use of untrusted data, reducing the likelihood that unsafe object reconstruction will be deployed.

prevents

Requiring vetted libraries, regular updates and SAST before release reduces the likelihood that deserialization logic will accept and act on attacker-controlled serialized objects.

detects

Regular scanning of third-party libraries and timely patching reduce the likelihood that unsafe deserialization vulnerabilities remain active.

none

Mandatory malware scanning of data received over networks or storage media intercepts malicious serialized payloads before they are deserialized by the target application.

References