Appsecure logo

CVE-2026-22252: Critical Vulnerability in LibreChat

CVE-2026-22252 is a critical vulnerability affecting LibreChat, allowing authenticated users to execute arbitrary shell commands as root via an API request. Organizations must patch immediately to mitigate risks associated with this exploit.

CRITICALCVSS 9.1 路 Published January 12, 2026

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2026-22252 is a critical vulnerability identified in LibreChat, a ChatGPT clone with additional features. This vulnerability allows authenticated users to execute arbitrary shell commands as root inside the container through a single API request. This security flaw arises from the MCP stdio transport accepting commands without proper validation. The vulnerability is addressed in version 0.8.2-rc2, and organizations using earlier versions are at significant risk.

The CVSS score for this vulnerability is 9.1, categorizing it as critical. This high severity indicates that exploitation could lead to severe consequences, including unauthorized access to sensitive information and potential complete system compromise. Risk to organizations includes significant data loss and service disruption, necessitating immediate attention from security teams.

Currently, there are no known public exploits for this vulnerability, but the nature of the issue suggests that it could be targeted in future attacks. Organizations should prioritize patching immediately to mitigate any potential risks associated with this vulnerability.

Given the critical nature of this vulnerability and its potential impact, prompt remediation is essential. Security teams must ensure that they are running the patched version of LibreChat to protect their systems from exploitation.

Vulnerability Details

The official CVE description states that prior to version 0.8.2-rc2, LibreChat's MCP stdio transport accepts arbitrary commands without validation. This vulnerability is classified under CWE-285. The affected product is LibreChat, and the CVE was published on January 12, 2026.

The CVSS score of 9.1 reflects a critical severity level, indicating high risk due to its low attack complexity and high impact across confidentiality, integrity, and availability.

Technical Analysis

The root cause of CVE-2026-22252 lies in the lack of input validation for commands processed by the MCP stdio transport. The attack vector is network-based, allowing any authenticated user with access to the API to leverage this vulnerability. Attack complexity is rated as low, meaning that attackers do not require advanced skills to exploit this issue.

Privileges required for exploitation are high, indicating that the attacker must be authenticated to exploit the vulnerability. User interaction is not required, which increases the likelihood of successful exploitation. The impact on confidentiality, integrity, and availability is rated as high, indicating severe consequences should the vulnerability be exploited.

Risk & Impact Analysis

The real-world deployment risk associated with CVE-2026-22252 is considerable. Organizations using vulnerable versions of LibreChat face potential unauthorized access and control over their systems. The blast radius is significant, as the ability to execute commands as root may lead to complete system compromise.

Organizations should assess their exposure to this vulnerability and the urgency of remediation based on the CVSS score and potential impact. Given the critical nature of this vulnerability, organizations should prioritize patching immediately.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The specific affected version is LibreChat v0.8.2-rc1. Organizations should upgrade to version 0.8.2-rc2 or later to mitigate this vulnerability.

Mitigation & Remediation

To remediate this vulnerability, organizations must upgrade to LibreChat version 0.8.2-rc2 or later, where this issue has been fixed. If immediate patching is not possible, organizations should implement strict access controls and monitor API usage to limit potential exploitation.

For further assistance, organizations may consider engaging in penetration testing to validate their security posture.

Detection Guidance

Organizations should monitor logs for any anomalous API requests that could indicate attempts to exploit this vulnerability. Behavioral anomalies such as unexpected command execution should also be flagged for review. Additionally, network signatures related to unauthorized command execution attempts should be established.

AppSecure Threat Intelligence Insight

The long-term significance of CVE-2026-22252 highlights the importance of stringent input validation in application design. Security teams should take this opportunity to review their architectures for similar vulnerabilities that could allow unauthorized access or control.

This incident serves as a reminder of the potential dangers posed by insufficient command validation processes. Security teams should implement rigorous testing and validation practices during development and regularly audit deployed applications.

For comprehensive security measures, organizations can leverage resources on penetration testing methodology and explore best practices for vulnerability management.

Lastly, organizations should stay vigilant and informed about emerging vulnerabilities and trends in the security landscape, including evolving threats related to AI systems as discussed in the AI security mistakes to enhance their overall security posture.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.