llamaCVEVulnerability Intelligence
/
LiteLLM

CVE-2026-40217

LiteLLM remote code execution via guardrails test endpoint

Remote attackers with a low-privilege login can run arbitrary code on the server through a bytecode rewriting flaw.

CISA KEV · explotación activaCrítica · en CISA KEV, EPSS ≥ 10 %Explotación activaParche disponiblecode injection
Descargar PNG JSON
CVSS 3.1
8.8
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
8.8adp · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
ExplotaciónActivaEn CISA KEV desde 18 nov 2026
Exploits públicos22 fuentes
Parche1 versiónPrimer parche a 9 d de la divulgación
Exposición223 dDesde la divulgación, 10 abr 2026, 8:43 a. m.
EPSS ≥ 10 %16 nov 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión SSVCAtender
Priorizar en el próximo ciclo de cambios
Explotación activa, no automatizable e impacto técnico total. Plazo KEV: 2 dic 2026.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Umbral EPSS
CISA KEV
Remediación
Parche 1.83.10
Plazo KEV
Monitoreo
Detectada
Verificada
10 abr 26
19 abr 26
15 jun 26
16 nov 26
17 nov 26
18 nov 26
19 nov 26
2 dic 26
10 abr 26
8 jun 26
6 ago 26
4 oct 26
2 dic 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-40217 divulgada · CVSS 8.8 (CNA)
Remediación Parche 1.83.10 litellm · 9 d desde divulgación
Divulgación Evaluación SSVC CISA-ADP · explotación activa
Explotación Umbral EPSS La probabilidad de explotación supera el 10 %
Monitoreo Detectada Ingresó al índice
Explotación CISA KEV Agregada al catálogo de vulnerabilidades explotadas
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Remediación Plazo KEV Fecha límite de remediación para agencias federales (EE. UU.)
Resumen
Resumen generado por IA · CC-BY 4.0 · 18 nov 2026

LiteLLM from BerriAI has a flaw that lets an attacker run arbitrary code on the server by abusing bytecode rewriting at the /guardrails/test_custom_code endpoint. It can be reached remotely over the network with only a low-privilege login, and it is listed by CISA as exploited in attacks.

Affects LiteLLM proxy (BerriAI) through 2026-04-08 where /guardrails/test_custom_code is reachable by an authenticated user. Red Hat rates it High, same as CVSS. No fixed version is named in the facts.

¿Qué significa?The /guardrails/test_custom_code endpoint accepts Python code for guardrail testing, and bytecode rewriting lets an authenticated attacker run arbitrary commands on the server. Commands run as the LiteLLM process user, which is root in the default Docker image.
¿Quién está afectado?LiteLLM through 2026-04-08 is listed as affected, and the issue was tested on the main-latest Docker image. The proxy must expose the /guardrails/test_custom_code endpoint, and the attacker must authenticate (the proof of concept used the master key). Check the LiteLLM version in use and whether that endpoint is reachable.
¿Qué hacer?No fixed LiteLLM version is named in the facts. Block the endpoint, limit the master key to trusted admins, keep the admin interface off untrusted networks, and run LiteLLM as a non-root user.
no-patchBlock /guardrails/test_custom_code at the reverse proxy (for example nginx deny all) and keep the master key limited to trusted admins. Don't expose the admin interface to untrusted networks, and run LiteLLM as a non-root user.
Descripción original del registro (mitre)

LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
LiteLLM proxy exposes the /guardrails/test_custom_code endpoint (tested on main-latest Docker image)“The LiteLLM proxy exposes a /guardrails/test_custom_code API endpoint that allows authenticated users to submit arbitrary Python code for guardrail testing.”
02
Attacker must authenticate to the endpoint (master key in the proof of concept)“The affected endpoint requires authentication with the master key.”
¿Quién debe revisar?Teams running the BerriAI LiteLLM proxy (main-latest Docker image), plus Red Hat Ansible Automation Platform 2.6 and OpenShift AI 3.3 users, where the guardrails test endpoint is reachable.
MitigaciónBlock /guardrails/test_custom_code at the reverse proxy (e.g. nginx deny all), keep the master key limited to trusted admins, don't expose the admin interface to untrusted networks, and run LiteLLM as a non-root user.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
litellm≥ 1.81.8 < 1.83.10
1.81.8
1.83.10
1.109.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypilitellm
Corregida 1.83.10 9 d 1.109.1 no afectada
Versiones corregidas1.83.10
Explotación

Arsenal público

Exploit-DB
—
0
Metasploit
—
0
Nuclei
http/cves/2026/CVE-2026-40217.yaml
1
PoC en GitHub
learner202649/CVE-2026-40217-PoC
1
Ver los 1 repositorios de GitHub
learner202649/CVE-2026-40217-PoC

Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.

Acción requerida por CISAApply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Registro
EscenarioGENERALmitre
MitigaciónMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.redhat-SADP
solutionRHSA-2026:24866: Red Hat Ansible Automation Platform 2.6redhat-SADP
solutionRHSA-2026:30056: Red Hat OpenShift AI 3.3redhat-SADP
Referencias
Advisoryhttps://access.redhat.com/errata/RHSA-2026:24866
Advisoryhttps://access.redhat.com/errata/RHSA-2026:30056
CISA KEVhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217
Análisishttps://bugzilla.redhat.com/show_bug.cgi?id=2457301
Exploithttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yaml
Exploithttps://github.com/learner202649/CVE-2026-40217-PoC
Otrahttps://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/
Otrahttps://access.redhat.com/security/cve/CVE-2026-40217
Otrahttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.