All reports
Critical

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

Affected versions

Version ranges need review.

Affected versions
< 1.83.7
Fixed version
1.83.7
Affected versions
<1.83.7
Fixed version
1.83.7
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-37004

Probability of exploitation in the next 30 days: 0.80%

FIRST EPSS · 2026-11-20

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.

Links