CVE-2026-37004
9.8critical
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 2.20% (higher than 83% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-6wvf-77m9-58rmPYSEC-2026-3861
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| litellm (PyPI) | before 1.83.7 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-37004 changed 2026-09-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6wvf-77m9-58rm changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-37004 changed 2026-09-01 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3861 changed 2026-09-10 | CC-BY-4.0 |