Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-42203: LiteLLM code execution through prompt template rendering in /prompts/test

Identifier
CVE-2026-42203
Published
Record updated
View JSON
Affected
  • litellm >= 1.80.5, < 1.83.7
Fixed in
1.83.7
  • released April 13, 2026, 25 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

LiteLLM, an AI gateway proxy that calls LLM APIs in OpenAI or native format, is affected from version 1.80.5 up to but not including 1.83.7. The POST /prompts/test endpoint rendered user-supplied prompt templates without sandboxing, so a crafted template could run arbitrary code inside the LiteLLM Proxy process. Any caller holding a valid proxy API key can reach the endpoint, and depending on deployment this may expose environment secrets such as provider API keys or database credentials and allow commands on the host.

Mitigation

Fixed in 1.83.7.