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.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2026-37004US | — | — | ||
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 dotpro… | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/BerriAI/litellmPACKAGE
- https://github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073WEB
- https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457cWEB
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stableWEB
- https://github.com/advisories/GHSA-6wvf-77m9-58rmADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-37004ADVISORY
- https://pypi.org/project/litellmPACKAGE
- https://yerangamage.com/cves/detail/?slug=litellm-ssti-rceWEB
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan