CVE-2026-37004
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
Severity by source
Trivy's own label is CRITICAL. Rated critical by GHSA.
Description
BerriAI litellm <=1.82.4 is vulnerable to Server-Side Template Injection (SSTI), which allows unauthenticated remote attackers to execute arbitrary OS commands via a crafted dotprompt_content parameter in the /prompts/test endpoint due to use of an unsandboxed jinja2.Environment.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | litellm | 1.83.7 |
| echo pip::Echo OSV | litellm | 1.83.7 |
| minimos | airflow-3, litellm-1.83 | 3.3.1-r0 and 1 more |
| seal pip::Seal Security Database | litellm, seal-litellm | 1.80.11+sp999 |
Show all 6 entries from 4 sources
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | litellm | 1.83.7 |
| echo pip::Echo OSV | litellm | 1.83.7 |
| minimos | airflow-3 | 3.3.1-r0 |
| minimos | litellm-1.83 | 1.83.10-r0 |
| seal pip::Seal Security Database | litellm | 1.80.11+sp999 |
| seal pip::Seal Security Database | seal-litellm | 1.80.11+sp999 |
References
- https://advisory.echohq.com/cve/CVE-2026-37004
- https://github.com/BerriAI/litellm
- https://github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073
- https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
- https://nvd.nist.gov/vuln/detail/CVE-2026-37004
- https://yerangamage.com/cves/detail/?slug=litellm-ssti-rce