{"id":"CVE-2026-37004","aliases":["CVE-2026-37004","GHSA-6wvf-77m9-58rm","PYSEC-2026-3861"],"related":[],"kind":"vulnerability","state":"published","title":"LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-08-27T00:00:00.000Z","modified":"2026-09-10T12:25:33.314Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-1336"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.83.7"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.83.7"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"pysec"}],"references":[{"url":"https://github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://yerangamage.com/cves/detail/?slug=litellm-ssti-rce","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-37004","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/litellm","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-6wvf-77m9-58rm","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-08-31T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-37004","url":"https://www.cve.org/CVERecord?id=CVE-2026-37004","licence":"CVE Terms of Use","modified":"2026-09-01T03:56:26.290Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6wvf-77m9-58rm","url":"https://github.com/advisories/GHSA-6wvf-77m9-58rm","licence":"CC-BY-4.0","modified":"2026-09-10T12:25:33.314Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-37004","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-37004","licence":"Public domain","modified":"2026-09-01T04:18:00.997Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3861","url":"https://osv.dev/vulnerability/PYSEC-2026-3861","licence":"CC-BY-4.0","modified":"2026-09-10T12:15:08.177Z"}],"updatedAt":"2026-11-25T22:59:35.523Z","epss":{"score":0.02203,"percentile":0.83052,"date":"2026-12-01T12:00:22.000Z"}}