Pre-authentication code execution via worker message deserialization
Published Oct 25, 2021 · Updated Aug 4, 2024
Unsafe deserialization in Apache Storm worker services allows remote attackers to execute arbitrary code before authentication. MessageDecoder handles a crafted -600 BackPressureStatus frame before SASL, then Kryo invokes Java ObjectInputStream on its payload without restricting types. Network access to a worker's Netty port is sufficient even when Storm authentication is enabled, and successful exploitation runs code in the worker JVM.
Summary
What happened
Unsafe deserialization in Apache Storm worker services allows remote attackers to execute arbitrary code before authentication. MessageDecoder handles a crafted -600 BackPressureStatus frame before SASL, then Kryo invokes Java ObjectInputStream on its payload without restricting types. Network access to a worker's Netty port is sufficient even when Storm authentication is enabled, and successful exploitation runs code in the worker JVM.
The record
- CVE
- CVE-2021-40865
- Published
- Oct 25, 2021
- Updated
- Aug 4, 2024
- Vendor
- The Apache Software Foundation
- Product
- Apache Storm
- Classifications
- CWE-502, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 25, 2021CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=Apache Storm <v1.2.4 changes=[{"at":"v2.1.1","status":"unaffected"},{"at":"v2.2.1","status":"unaffected"},{"at":"v2.3.0","status":"unaffected"}]
- Affected versionversion=v1.0.0 <Apache Storm *
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSL Netty worker URLDNS proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo