CVE-2026-42271

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.74.2 to before version 1.83.7, two endpoints used to preview an MCP server before saving it — POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list — accepted a full server configuration in the request body, including the command, args, and env fields used by the stdio transport. When called with a stdio configuration, the endpoints attempted to connect, which spawned the supplied command as a subprocess on the proxy host with the privileges of the proxy process. The endpoints were gated only by a valid proxy API key, with no role check. Any authenticated user — including holders of low-privilege internal-user keys — could therefore run arbitrary commands on the host. This issue has been patched in version 1.83.7.
Configurations

Configuration 1 (hide)

cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*

Configuration 2 (hide)

OR cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_ai:3.4:*:*:*:*:*:*:*

History

26 Oct 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) LiteLLM es un servidor proxy (Pasarela de IA) para llamar a las API de LLM en formato OpenAI (o nativo). Desde la versión 1.74.2 hasta antes de la versión 1.83.7, dos puntos finales utilizados para previsualizar un servidor MCP antes de guardarlo - POST /mcp-rest/test/connection y POST /mcp-rest/test/tools/list - aceptaban una configuración completa del servidor en el cuerpo de la solicitud, incluyendo los campos command, args y env utilizados por el transporte stdio. Cuando se invocaban con una configuración stdio, los puntos finales intentaban conectarse, lo que generaba el comando proporcionado como un subproceso en el host proxy con los privilegios del proceso proxy. Los puntos finales estaban protegidos únicamente por una clave API de proxy válida, sin verificación de rol. Cualquier usuario autenticado - incluyendo los titulares de claves de usuario interno de bajo privilegio - podía, por lo tanto, ejecutar comandos arbitrarios en el host. Este problema ha sido parcheado en la versión 1.83.7.

Information

Published : 2026-05-08 04:16

Updated : 2026-10-26 20:10


NVD link : CVE-2026-42271

Mitre link : CVE-2026-42271

CVE.ORG link : CVE-2026-42271


JSON object : View

Products Affected

litellm

  • litellm

redhat

  • openshift_ai
CWE
CWE-77

Improper Neutralization of Special Elements used in a Command ('Command Injection')

CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')