{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-22911 exists.","fix":"No fix has been published for CVE-2021-22911 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-22911 is a critical code injection vulnerability in Rocket.chat Rocket.chat, published on 27 May 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-22911 and fix it if it is affected.\n\nWhat it is: CVE-2021-22911 is a critical code injection vulnerability in Rocket.chat Rocket.chat, published on 27 May 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-22911 exists.\n\nAffected product: Rocket.chat Rocket.chat. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-22911/ (Markdown: https://insights.sbomify.com/CVE-2021-22911/index.md)","id":"CVE-2021-22911","markdown":"https://insights.sbomify.com/CVE-2021-22911/index.md","name":"CVE-2021-22911","record":{"aliases":["GHSA-fj2w-2856-965h"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Rocket.Chat server","requires_auth":"none","summary":"Unauthenticated attackers can exploit improper input sanitization in Rocket.Chat server to achieve remote code execution via NoSQL injection.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"rocket.chat","vendor":"rocket.chat"}],"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-75","name":"Failure to Sanitize Special Elements into a Different Plane"}],"description":"A improper input sanitization vulnerability exists in Rocket.Chat server 3.11, 3.12 \u0026 3.13 that could lead to unauthenticated NoSQL injection, resulting potentially in RCE.","ecosystems":[],"exploits":{"exploitdb":2,"first_seen":"2021-06-05","github_poc":11,"max_poc_stars":61,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-06-05T15:05:01Z","kind":"github_poc","ref":"https://github.com/CsEnox/CVE-2021-22911","stars":61,"title":"Pre-Auth Blind NoSQL Injection leading to Remote Code Execution in Rocket Chat 3.12.1"},{"date":"2021-07-30T21:44:18Z","kind":"github_poc","ref":"https://github.com/optionalCTF/Rocket.Chat-Automated-Account-Takeover-RCE-CVE-2021-22911","stars":10,"title":"Full unauthenticated RCE proof of concept for Rocket.Chat 3.12.1 CVE-2021-22911"},{"date":"2026-03-04T19:40:47Z","kind":"github_poc","ref":"https://github.com/Faridi-m/CVE-2021-22911-RocketChat","stars":2,"title":null},{"date":"2026-04-10T09:16:26Z","kind":"github_poc","ref":"https://github.com/roshanrajbanshi/rocketcat-cve-2021-22911-exploit","stars":1,"title":"CVE-2021-22911 Rocket.Chat NoSQL Injection RCE Exploit - Educational Purpose"},{"date":"2021-06-07","kind":"exploitdb","ref":"49960","stars":null,"title":"Rocket.Chat 3.12.1 - NoSQL Injection (Unauthenticated)"},{"date":"2021-07-07","kind":"exploitdb","ref":"50108","stars":null,"title":"Rocket.Chat 3.12.1 - NoSQL Injection to RCE (Unauthenticated) (2)"},{"date":"2021-09-19T11:43:06Z","kind":"github_poc","ref":"https://github.com/jayngng/CVE-2021-22911","stars":0,"title":"Modifed ver of the original exploit to save some times on password reseting for unprivileged user"},{"date":"2023-04-01T07:19:54Z","kind":"github_poc","ref":"https://github.com/ChrisPritchard/CVE-2021-22911-rust","stars":0,"title":"exploit for CVE-2021-22911 in rust"}],"tier":"weaponised"},"has_fix":false,"headline":"Code injection in Rocket.Chat server","id":"CVE-2021-22911","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"rocket.chat:rocket.chat","products":["rocket.chat:rocket.chat"],"type":"code_injection","year":"2021"},"n_packages":0,"n_references":4,"next":{"headline":"Information disclosure in Nextcloud iOS app (it.twsweb.Nextcloud)","id":"CVE-2021-22912"},"packages":[],"prev":{"headline":"Code injection in Rocket.Chat server","id":"CVE-2021-22910"},"products":["Rocket.Chat server"],"published":"2021-05-27","related":[{"cvss_score":9.8,"headline":"Auth bypass in Rocket.Chat","id":"CVE-2026-58066","kev_date_added":null,"published":"2026-07-30"},{"cvss_score":9.8,"headline":"SQL injection in Rocket.Chat","id":"CVE-2026-29198","kev_date_added":null,"published":"2026-04-22"},{"cvss_score":9.8,"headline":"Security feature bypass in Rocket.Chat","id":"CVE-2023-28316","kev_date_added":null,"published":"2023-05-09"},{"cvss_score":9.8,"headline":"Command injection in Rocket.chat - Electron Desktop","id":"CVE-2022-44567","kev_date_added":null,"published":"2022-12-23"},{"cvss_score":9.8,"headline":"Code injection in Rocket.Chat server","id":"CVE-2021-22910","kev_date_added":null,"published":"2021-08-09"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2020-29594","kev_date_added":null,"published":"2020-12-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Unauthenticated attackers can exploit improper input sanitization in Rocket.Chat server to achieve remote code execution via NoSQL injection.","url":"https://insights.sbomify.com/CVE-2021-22911/"}