CVE-2026-37004
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
2.20% (higher than 83% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-6wvf-77m9-58rmPYSEC-2026-3861

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
litellm (PyPI)before 1.83.7GitHub Advisory Database, PyPA Advisory Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-1336

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-37004 changed 2026-09-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-6wvf-77m9-58rm changed 2026-09-10CC-BY-4.0
NVDCVE-2026-37004 changed 2026-09-01Public domain
PyPA Advisory DatabasePYSEC-2026-3861 changed 2026-09-10CC-BY-4.0