Loading...
Skip to main content

CVE-2026-37004 — Vulnerability in litellm — CVE Details

CRITICAL

LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint

Published August 27, 2026Updated September 10, 2026Source: osv

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 (45 days ago).
  • Last revised September 10, 2026 — 14 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

pip
Update litellm to 1.83.7 or later
pip install "litellm>=1.83.7"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: pypi (1).

PackageEcosystemAffectedFixed In
litellm
pypi
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.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-37004 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-6wvf-77m9-58rm
PYSEC-2026-3861

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies