{"answers":{"affected":"6 open source packages ship an affected version, including org.apache.storm:storm. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-38294 exists.","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-38294 is a critical command injection 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-38294 and fix it if it is affected.\n\nWhat it is: CVE-2021-38294 is a critical command injection 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: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-38294 exists.\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.0.0; fixed in 2.1.1\n- org.apache.storm:storm (Maven): affected from 2.0.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-38294/ (Markdown: https://insights.sbomify.com/CVE-2021-38294/index.md)","id":"CVE-2021-38294","markdown":"https://insights.sbomify.com/CVE-2021-38294/index.md","name":"CVE-2021-38294","record":{"aliases":["GHSA-6768-mcjc-8223"],"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":"Attackers can execute arbitrary code on Apache Storm Nimbus servers via crafted Thrift requests without authentication.","user_interaction":"not_required","vuln_class":"command_injection"},"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-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"A Command Injection vulnerability exists in the getTopologyHistory service of the Apache Storm 2.x prior to 2.2.1 and Apache Storm 1.x prior to 1.2.4. A specially crafted thrift request to the Nimbus server allows Remote Code Execution (RCE) prior to authentication.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-10-25","github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":0,"refs":[{"date":"2021-10-25","kind":"metasploit","ref":"exploit/linux/misc/nimbus_gettopologyhistory_cmd_exec","stars":null,"title":"Apache Storm Nimbus getTopologyHistory Unauthenticated Command Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Shell Command Injection Vulnerability in Nimbus Thrift Server","id":"CVE-2021-38294","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":6,"n_references":3,"next":{"headline":"Privilege escalation vulnerability when using HTML attachments","id":"CVE-2021-38295"},"packages":[{"ecosystem":"Maven","fixed":["1.2.4"],"introduced":["1.0.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":null,"source":"GHSA-6768-mcjc-8223"},{"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-6768-mcjc-8223"},{"ecosystem":"Maven","fixed":["2.1.1"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":null,"source":"GHSA-6768-mcjc-8223"},{"ecosystem":"Maven","fixed":["2.1.1"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":"pkg:maven/org.apache.storm/storm","source":"GHSA-6768-mcjc-8223"},{"ecosystem":"Maven","fixed":["2.2.1"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.storm:storm","purl":null,"source":"GHSA-6768-mcjc-8223"},{"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-6768-mcjc-8223"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2021-38291"},"products":["Apache Storm"],"published":"2021-10-25","related":[{"cvss_score":9.8,"headline":"Unsafe Pre-Authentication Deserialization In Workers","id":"CVE-2021-40865","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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary code on Apache Storm Nimbus servers via crafted Thrift requests without authentication.","url":"https://insights.sbomify.com/CVE-2021-38294/"}