{"answers":{"affected":"6 open source packages ship an affected version, including org.apache.storm:storm. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-40865 in the wild and no public exploit code.","fix":"Upgrade org.apache.storm:storm to a fixed version for your release line: 1.2.4, 2.1.1 or 2.2.1.","what":"CVE-2021-40865 is a critical unsafe deserialization vulnerability in Apache Storm, published on 25 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-40865 and fix it if it is affected.\n\nWhat it is: CVE-2021-40865 is a critical unsafe deserialization vulnerability in Apache Storm, published on 25 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-40865 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.storm:storm (Maven): affected from 1.0.0; fixed in 1.2.4\n- org.apache.storm:storm (Maven): affected from 1.0.0; fixed in 1.2.4\n- org.apache.storm:storm (Maven): affected from 2.1.0; fixed in 2.1.1\n- org.apache.storm:storm (Maven): affected from 2.1.0; fixed in 2.1.1\n- org.apache.storm:storm (Maven): affected from 2.2.0; fixed in 2.2.1\n- org.apache.storm:storm (Maven): affected from 2.2.0; fixed in 2.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-40865/ (Markdown: https://insights.sbomify.com/CVE-2021-40865/index.md)","id":"CVE-2021-40865","markdown":"https://insights.sbomify.com/CVE-2021-40865/index.md","name":"CVE-2021-40865","record":{"aliases":["GHSA-w729-7633-2fw5"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Storm","requires_auth":"none","summary":"An unsafe deserialization flaw in Apache Storm worker services allows pre-authentication remote code execution, requiring users to upgrade to patched versions.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"storm","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"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 2.1.1. Apache Storm 1.x users should upgrade to version 1.2.4","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-11-26","github_poc":1,"max_poc_stars":14,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-11-26T10:09:40Z","kind":"github_poc","ref":"https://github.com/hktalent/CVE-2021-40865","stars":14,"title":"CVE-2021-40865"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Unsafe Pre-Authentication Deserialization In Workers","id":"CVE-2021-40865","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2021"},"n_packages":6,"n_references":2,"next":{"headline":"Auth bypass in n/a","id":"CVE-2021-40866"},"packages":[{"ecosystem":"Maven","fixed":["1.2.4"],"introduced":["1.0.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":null,"source":"GHSA-w729-7633-2fw5"},{"ecosystem":"Maven","fixed":["1.2.4"],"introduced":["1.0.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":"pkg:maven/org.apache.storm/storm","source":"GHSA-w729-7633-2fw5"},{"ecosystem":"Maven","fixed":["2.1.1"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":null,"source":"GHSA-w729-7633-2fw5"},{"ecosystem":"Maven","fixed":["2.1.1"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":"pkg:maven/org.apache.storm/storm","source":"GHSA-w729-7633-2fw5"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":null,"source":"GHSA-w729-7633-2fw5"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":"pkg:maven/org.apache.storm/storm","source":"GHSA-w729-7633-2fw5"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-40864"},"products":["Apache Storm"],"published":"2021-10-25","related":[{"cvss_score":9.8,"headline":"Shell Command Injection Vulnerability in Nimbus Thrift Server","id":"CVE-2021-38294","kev_date_added":null,"published":"2021-10-25"},{"cvss_score":9.8,"headline":"Deserialization of Untrusted Data in Apache Storm","id":"CVE-2018-11779","kev_date_added":null,"published":"2019-07-25"},{"cvss_score":9.8,"headline":"Apache Storm remote code execution vulnerability","id":"CVE-2015-3188","kev_date_added":null,"published":"2017-01-13"},{"cvss_score":8.8,"headline":"Apache Storm Client: RCE through Unsafe Deserialization via Kerberos TGT Credential Handling","id":"CVE-2026-35337","kev_date_added":null,"published":"2026-04-13"},{"cvss_score":8.8,"headline":"Code execution in org.apache.storm:storm-core","id":"CVE-2018-1331","kev_date_added":null,"published":"2018-07-10"},{"cvss_score":8.8,"headline":"Apache Storm it is possible for the owner of a topology to trick the supervisor to launch a worker as a different, non-root, user","id":"CVE-2017-9799","kev_date_added":null,"published":"2017-08-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Apache Software Foundation"]},"summary":"An unsafe deserialization flaw in Apache Storm worker services allows pre-authentication remote code execution, requiring users to upgrade to patched versions.","url":"https://insights.sbomify.com/CVE-2021-40865/"}