BerriAI · LiteLLM · published 2026-05-08
CVE-2026-42203LiteLLM: Server-Side Template Injection in /prompts/test endpoint
Routine No exploitation evidence; EPSS 0.4%.
CVE-2026-42203 is not known to be exploited in the wild. EPSS estimates a 0.4% chance of exploitation in the next 30 days, higher than 32% of all CVEs. This LiteLLM vulnerability: CVSS 8.6 (v4.0), a successful attack gives total control of the component. Fixed upstream in LiteLLM 1.83.7. Routine: patch when convenient.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
Fixed upstream in LiteLLM 1.83.7.
Patch events
AI toolingLiteLLM
LiteLLM security release: 1.83.7
Upgrade to
1.83.7Why: CVE-2026-42208: Known exploited server software, exploitation is automatable, total technical impact.
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | No | CISA KEV |
| Ransomware use | — | CISA KEV |
| EPSS (30-day exploitation probability) | 0.4% (32th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 8.6 (v4.0)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | CNA / CISA ADP |
| SSVC exploitation | none | CISA Vulnrichment |
| SSVC automatable | No | CISA Vulnrichment |
| SSVC technical impact | total | CISA Vulnrichment |
Affected versions (from the CVE record)#
- BerriAI litellm
>= 1.80.5, < 1.83.7(affected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.