CVE-2026-22252

LibreChat MCP Stdio Remote Command Execution

Published Jan 12, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

LibreChat's MCP stdio transport, prior to version 0.8.2-rc2, treats incoming requests as direct shell commands without validation. An authenticated user can send a specially crafted API request that results in arbitrary command execution with root privileges inside the container. This flaw is an Improper Authorization vulnerability (CWE-285) that can compromise confidentiality, integrity, and availability of the host system.

Affected Systems

The affected product is LibreChat by danny-avila, specifically versions up to and including 0.8.2-rc1. The vulnerability exists in the containerized deployment of LibreChat and is resolved in 0.8.2-rc2. All users running the unpatched release that expose the MCP stdio transport are vulnerable.

Risk and Exploitability

The CVSS score of 9.1 indicates a critical severity, while the EPSS score of <1% indicates a very low likelihood of exploitation, and the vulnerability is not currently listed in CISA's known exploited vulnerabilities catalog. Nevertheless, because the vulnerability allows root‑level execution from an authenticated session, it is likely to be abused once discovered. An attacker can achieve full control over the container host by sending a single API request as any legitimate user.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade LibreChat to version 0.8.2-rc2 or later, which sanitizes commands sent to the MCP stdio transport.
  • If an upgrade is infeasible, revoke or restrict authenticated access to the MCP stdio API until the patch is applied, or disable the transport altogether.
  • After applying the patch, run the LibreChat container under least‑privilege user accounts, and enforce input validation on any remaining command execution points to reduce the risk of future injection flaws.

Generated by OpenCVE AI on November 26, 2026 at 20:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:librechat:librechat:0.8.2:rc1:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Librechat
Librechat librechat
Vendors & Products Librechat
Librechat librechat
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title LibreChat MCP Stdio Remote Command Execution
Weaknesses CWE-285
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 12, 2026, 6:48 PM
Reserved
Jan 7, 2026, 5:19 AM
Status
Analyzed
Published
Jan 12, 2026, 7:16 PM
Modified
Jun 17, 2026, 10:19 AM