Vulnerabilities / CVE-2026-37004

critical

CVE-2026-37004

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

Published Modified CWE 1336
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by GHSA.

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 and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory piplitellm1.83.7
echo pip::Echo OSVlitellm1.83.7
minimosairflow-3, litellm-1.833.3.1-r0 and 1 more
seal pip::Seal Security Databaselitellm, seal-litellm1.80.11+sp999
Show all 6 entries from 4 sources
SourcePackageFixed in
pip::GitHub Security Advisory piplitellm1.83.7
echo pip::Echo OSVlitellm1.83.7
minimosairflow-33.3.1-r0
minimoslitellm-1.831.83.10-r0
seal pip::Seal Security Databaselitellm1.80.11+sp999
seal pip::Seal Security Databaseseal-litellm1.80.11+sp999

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.