CVE-2026-22252

9.1

Danny Avila · LibreChat

LibreChat versions prior to v0.8.2-rc2 contain an improper authorization vulnerability in the MCP stdio transport that allows authenticated users to execute arbitrary shell commands as root.

Executive summary

A critical vulnerability in LibreChat allows authenticated users to achieve root-level remote code execution within the container environment.

Vulnerability

This is an improper authorization flaw (CWE-285) in the MCP stdio transport mechanism. The system fails to validate commands, permitting any authenticated user to execute arbitrary shell commands with root privileges via a single API request.

Business impact

The ability for an authenticated attacker to execute commands as root within the container represents a total compromise of the application environment. Given the CVSS score of 9.1, this vulnerability poses a severe risk of data exfiltration, service disruption, and potential lateral movement into the host system or connected infrastructure.

Remediation

Immediate Action: Upgrade the LibreChat instance to version v0.8.2-rc2 or the latest available stable release immediately to patch the command validation flaw.

Proactive Monitoring: Review application access logs for suspicious API requests directed at the MCP stdio transport or unusual shell command execution patterns.

Compensating Controls: Implement strict network segmentation and restrict access to the LibreChat interface to trusted users only, as the vulnerability requires authenticated access.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

The severity of this vulnerability cannot be overstated, as it grants full control over the containerized environment. Security teams must prioritize updating to version v0.8.2-rc2 to eliminate this command execution vector. Failure to patch allows any authenticated user to bypass security controls and gain administrative access to the underlying container.

History

  1. Disclosed CVE record published
  2. Published in the daily brief critical section
  3. Analyst report written
  4. Fix documented per OSV.dev

Sources