CVE-2026-37004 — Vulnerability in litellm — CVE Details
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.80%). Schedule for your next planned update.
Does your project use an affected litellm version?
Paste your requirements.txt to check it for CVE-2026-37004 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published August 27, 2026 (91 days ago).
- Last revised September 10, 2026 — 14 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "litellm>=1.83.7"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| litellm PyPI · Affected: 0.1.0, 0.1.1, 0.1.2, 0.1.201 (+730 more) | 1.83.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1336
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-37004ADVISORY
- https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457cWEB
- https://github.com/BerriAI/litellmPACKAGE
- https://github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073WEB
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stableWEB
- https://yerangamage.com/cves/detail/?slug=litellm-ssti-rceWEB
Frequently Asked Questions
- What is CVE-2026-37004?
- LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-37004?
- CVE-2026-37004 affects litellm. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-37004 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 53.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2024-2952CRITICAL
LiteLLM has Server-Side Template Injection vulnerability in /completions endpoint
- CVE-2026-49468CRITICAL
LiteLLM: Authentication Bypass via Host Header Injection
- CVE-2026-35029CRITICAL
LiteLLM: Privilege escalation via unrestricted proxy configuration endpoint
- CVE-2026-49468CRITICAL
LiteLLM: Authentication Bypass via Host Header Injection
- CVE-2026-35030CRITICAL
LiteLLM: Authentication bypass via OIDC userinfo cache key collision
- CVE-2026-42208CRITICAL
LiteLLM has SQL Injection in Proxy API key verification
- CVE-2026-35029HIGH
LiteLLM: Privilege escalation via unrestricted proxy configuration endpoint
- CVE-2026-114612HIGH
LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key