CVE-2026-22252 LibreChat MCP Stdio Remote Command Execution
Authenticated users can execute arbitrary shell commands as root via the MCP stdio transport due to lack of input validation.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-22252?
CVE-2026-22252 is a critical command injection vulnerability in Librechat Librechat, published on 12 Jan 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
LibreChat is a ChatGPT clone with additional features. Prior to v0.8.2-rc2, LibreChat's MCP stdio transport accepts arbitrary commands without validation, allowing any authenticated user to execute shell commands as root inside the container through a single API request. This vulnerability is fixed in v0.8.2-rc2.
Weakness: CWE-285
Which versions are affected by CVE-2026-22252?
It affects 1 product.
Products include Librechat Librechat.
How do I fix CVE-2026-22252?
No fix has been published for CVE-2026-22252 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-22252 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22252 exists.
Other vulnerabilities in Librechat Librechat
- CVE-2026-32625 LibreChat Exfiltrates Server Secrets via MCP Server URL Injection
- CVE-2024-11167 Improper Access Control in danny-avila/librechat
- CVE-2025-69222 LibreChat is vulnerable to Server-Side Request Forgery due to missing restrictions
- CVE-2024-41704 Path traversal in n/a
- CVE-2024-11170 Path Traversal in danny-avila/librechat
Sources
Also known as GHSA-cxhj-j78r-p88f.