INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2026-37004

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

CVE-2026-37004 ยท 2026-08-27 critical

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Code and command execution
Affected
litellm (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% chance of exploitation in 30 days

How it works, in short

The prompt test endpoint renders attacker-supplied template text with an unsandboxed Jinja2 environment, letting unauthenticated callers run OS commands. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.