CVE-2026-54027
JSON

6.5medium

LibreChat: Image Upload Route Bypasses Agent Permission Check — Incomplete Fix for File Upload Authorization

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.22% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/files/images endpoint allows any authenticated user to upload files into any agent's tool_resources (e.g., context, execute_code) without verifying ownership or EDIT permission on the target agent. A permission check was added to the POST /api/files route in a previous patch, but the image upload route was never updated with the same check. An attacker can simply use the image endpoint instead of the file endpoint to bypass the authorization entirely. This vulnerability is fixed in 0.8.4-rc1.

Affected

Product or packageVersionsReported by
danny-avila LibreChat< 0.8.4-rc1CVE List
librechat librechatup to 0.8.3NVD

Classification

CWE-862

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/files/images endpoint allows any authenticated user to upload files into any agent's tool_resources (e.g., context, execute_code) without verifying ownership or EDIT permission on the target agent. A permission check was added to the POST /api/files route in a previous patch, but the image upload route was never updated with the same check. An attacker can simply use the image endpoint instead of the file endpoint to bypass the authorization entirely. This vulnerability is fixed in 0.8.4-rc1.

NVD (es)

LibreChat es un clon mejorado de ChatGPT que soporta múltiples proveedores de IA. Antes de 0.8.4-rc1, el endpoint POST /api/files/images permite a cualquier usuario autenticado subir archivos a los tool_resources de cualquier agente (por ejemplo, context, execute_code) sin verificar la propiedad o el permiso de EDICIÓN en el agente objetivo. Se añadió una verificación de permisos a la ruta POST /api/files en un parche anterior, pero la ruta de subida de imágenes nunca se actualizó con la misma verificación. Un atacante puede simplemente usar el endpoint de imágenes en lugar del endpoint de archivos para eludir la autorización por completo. Esta vulnerabilidad está corregida en 0.8.4-rc1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54027 changed 2026-06-26CVE Terms of Use
NVDCVE-2026-54027 changed 2026-10-25Public domain