Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-37004 EUVD-2026-67271GHSA-6wvf-77m9-58rmPYSEC-2026-3861

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

Published Aug 27, 2026 · Updated Sep 1, 2026 · Assigned by mitre

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.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI litellm < 1.83.7 1.83.7 GHSA-6wvf-77m9-58rm

References