CVE-2026-37004criticalBroken access control2026-08-27
CVE-2026-37004: LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
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.
What it is
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.
How to check
- Affected: litellm (pip) < 1.83.7.
- Compare your installed version with the range above (command below).
How to fix
- Upgrade litellm to 1.83.7 or later.
pip show litellm | grep Version Sources
More advisories for this tool
- criticalCVE-2026-114612: LiteLLM proxy lets an internal user forge an admin token and run commands
- criticalLiteLLM 1.107.0 on PyPI and Docker was malware: a credential stealer that runs whenever Python starts
- criticalCVE-2026-49468: LiteLLM: Authentication Bypass via Host Header Injection
- criticalCVE-2026-42208: LiteLLM has SQL Injection in Proxy API key verification