LiteLLM /prompts/test server-side template injection allows unauthenticated command execution (CVE-2026-37004)
Summary
Per the vendor advisory, LiteLLM has a server-side template injection in the /prompts/test endpoint. The advisory description states that for litellm up to and including 1.82.4, unauthenticated remote attackers can run arbitrary OS commands through a crafted dotprompt_content parameter. Separately, the advisory package table lists all litellm versions below 1.83.7 as vulnerable and 1.83.7 as patched.
Severity
Timeline
GitHub advisory GHSA-6wvf-77m9-58rm for CVE-2026-37004 published. (per the vendor advisory)
Advisory updated. (per the vendor advisory)
How it happened
Per the vendor advisory, its description states that litellm up to and including 1.82.4 is affected: the /prompts/test endpoint uses an unsandboxed jinja2.Environment, and a crafted dotprompt_content parameter lets unauthenticated remote attackers execute arbitrary OS commands. The advisory package table separately lists all versions below 1.83.7 as vulnerable. The advisory does not state whether the exploitation details in the description apply to versions between 1.82.4 and 1.83.7.
How to check your app
- all affected versions: Before 1.83.7: Check the installed litellm version. The advisory package table lists versions below 1.83.7 as vulnerable.
- litellm <=1.82.4: The advisory description names these versions as vulnerable to the unauthenticated command execution it describes.
Sources
Corrections and updates
Cite this entry
- Title
- LiteLLM /prompts/test server-side template injection allows unauthenticated command execution (CVE-2026-37004)
- Added
- Nov 20, 2026
- URL
- https://vibeincidents.com/incidents/litellm-cve-2026-37004/
- Suggested citation
VibeIncidents. "LiteLLM /prompts/test server-side template injection allows unauthenticated command execution (CVE-2026-37004)." Nov 20, 2026. https://vibeincidents.com/incidents/litellm-cve-2026-37004/