8.6Alta

CVE-2026-42203LiteLLM: Server-Side Template Injection in /prompts/test endpoint

BerriAI litellm; Red Hat Exploit Intelligence; Red Hat Red Hat Ansible Automation Platform 2; Red Hat Red Hat OpenShift AI (RHOAI) Publicada: (hace 6 meses)

Descripción

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.80.5 to before version 1.83.7, the POST /prompts/test endpoint accepted user-supplied prompt templates and rendered them without sandboxing. A crafted template could run arbitrary code inside the LiteLLM Proxy process. The endpoint only checks that the caller presents a valid proxy API key, so any authenticated user could reach it. Depending on how the proxy is deployed, this could expose secrets in the process environment (such as provider API keys or database credentials) and allow commands to be run on the host. This issue has been patched in version 1.83.7.

Debilidad (CWE): CWE-1336CWE-94

Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.

Productos y versiones afectados

FabricanteProductoVersiones
BerriAI litellm >= 1.80.5, < 1.83.7
litellm litellm 1.80.5 – < 1.83.7
Red Hat Exploit Intelligence —
Red Hat Red Hat Ansible Automation Platform 2 all versions
Red Hat Red Hat OpenShift AI (RHOAI) —

Referencias y parches

Coincidencias CPE (NVD) (1)

  • cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* ≥ 1.80.5 < 1.83.7