{"id":"CVE-2026-37004","aliases":["GHSA-6wvf-77m9-58rm","PYSEC-2026-3861"],"title":"LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint","summary":"LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","vendor":"litellm","product":"litellm","ecosystem":"pip","affected":["litellm < 1.83.7"],"patched":["litellm 1.83.7"],"published":"2026-08-27","updated":"2026-09-10","sourceUpdated":"2026-09-10T12:25:33.314139929Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-6wvf-77m9-58rm","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-37004"},{"url":"https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c"},{"url":"https://github.com/BerriAI/litellm"},{"url":"https://github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073"},{"url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable"},{"url":"https://yerangamage.com/cves/detail/?slug=litellm-ssti-rce"},{"url":"https://pypi.org/project/litellm"},{"url":"https://github.com/advisories/GHSA-6wvf-77m9-58rm"}],"tags":["osv","pip","ghsa"],"epss":0.00548,"epssPercentile":0.44539,"cwe":["CWE-1336"],"ingestedAt":"2026-09-08T22:12:30.967Z","slug":"CVE-2026-37004","body":"## Overview\n\nBerriAI 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.\n\n## Affected packages\n\n- `litellm < 1.83.7`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `litellm 1.83.7`","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":53.9,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}