CVE-2026-37004
Received Received - Intake

Server-Side Template Injection in LiteLLM

Vulnerability report for CVE-2026-37004, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-27

Last updated on: 2026-08-27

Assigner: MITRE

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-27
Last Modified
2026-08-27
Generated
2026-08-28
AI Q&A
2026-08-27
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
berriai litellm to 1.82.4 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a Server-Side Template Injection (SSTI) in BerriAI litellm versions 1.82.4 and earlier. It allows unauthenticated remote attackers to execute arbitrary operating system commands by sending a specially crafted dotprompt_content parameter to the /prompts/test endpoint. The issue arises because the application uses an unsandboxed jinja2.Environment, which enables template injection attacks.

Detection Guidance

To detect this vulnerability, inspect network traffic for requests to the /prompts/test endpoint with unusual dotprompt_content parameters. Check logs for Jinja2 template injection attempts or OS command execution patterns. Review prompt ID parsing logic in litellm/proxy/prompts/prompt_endpoints.py for improper handling of versioned prompts.

Impact Analysis

This vulnerability can allow attackers to execute arbitrary OS commands on the server hosting the vulnerable litellm instance. This could lead to complete system compromise, data theft, unauthorized access, or disruption of services. Since it is unauthenticated, any attacker with network access to the endpoint can exploit it.

Compliance Impact

This vulnerability could lead to severe compliance violations under GDPR and HIPAA. It may result in unauthorized access to personal or sensitive data, triggering breach notification requirements, potential fines, and reputational damage. Organizations using affected versions must address this promptly to maintain compliance.

Mitigation Strategies

Immediately upgrade to a patched version of LiteLLM beyond 1.82.4. Disable the /prompts/test endpoint if unused. Implement strict input validation for prompt IDs and sanitize Jinja2 template parameters. Restrict access to PROXY_ADMIN roles and audit prompt registry permissions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-37004. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart