Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed litellm proxy
-
DeliveryPOST crafted dotprompt_content to /prompts/test
-
ExploitTrigger unsandboxed Jinja2 SSTI
-
ExecutionEscape to Python builtins
-
ImpactExecute arbitrary OS commands on host
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Exploitation requires network reachability to the litellm proxy's /prompts/test endpoint and the ability to submit the dotprompt_content parameter; per CVSS PR:N/UI:N no authentication or user interaction is needed against affected versions (<=1.82.4). The concrete trigger is user-controlled content flowing into an unsandboxed jinja2.Environment, so the endpoint must be exposed and the prompt-test feature reachable. The primary limiting factor is exposure rather than configuration: if the proxy is bound to localhost or gated behind authentication/network ACLs, an unauthenticated remote attacker cannot reach the vulnerable route; there is no platform or non-default-option requirement noted in the data. |
| Impact | The signals are largely aligned toward high severity: the CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H = 9.8) describes network-reachable, low-complexity, unauthenticated exploitation with full impact, and SSTI-to-RCE is a well-understood and reliably automatable class. The one dissenting signal is EPSS at 0.25% (16th percentile), which reflects that no weaponized exploit or active-exploitation telemetry has been observed yet rather than any technical difficulty - a gap that typically closes quickly for unauthenticated RCE in a popular internet-exposed proxy. There is no CISA KEV listing, so this should be prioritized as a high-urgency patch based on exploitability and impact, not confirmed exploitation. A significant caveat is exposure: if the litellm proxy is only reachable inside a trusted network, the AV:N rating overstates real-world reach, so defenders should verify whether their /prompts/test endpoint is actually internet-facing before assigning it emergency status. |
| Exploit ScenarioDerived | An attacker who can reach the litellm proxy sends an HTTP POST to /prompts/test with a dotprompt_content value containing a Jinja2 payload (for example one that walks Python object internals to reach os.popen). The server renders it in the unsandboxed environment and executes the embedded OS command, returning output or establishing a reverse shell - all without credentials. A third-party technical write-up describing the issue is referenced, though no packaged public exploit code is confirmed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 31, 2026
Unauthenticated remote code execution affects BerriAI litellm through version 1.82.4, where the /prompts/test endpoint renders the attacker-supplied dotprompt_content parameter through an unsandboxed jinja2.Environment. Because no authentication is required and templates are evaluated server-side, an attacker can inject a Jinja2 payload that escapes into Python and runs arbitrary OS commands on the proxy host. No public exploit identified at time of analysis and the EPSS probability is low (0.25%), but the CVSS is 9.8 and a third-party technical write-up is referenced.
RemediationAI
Upgrade litellm to a release later than 1.82.4 that replaces the unsandboxed jinja2.Environment on the /prompts/test path; the exact patched version is not confirmed in the provided data, so consult the BerriAI/litellm GitHub releases and the linked source file for the fixed commit before deploying (Upstream fix location identified in source; released patched version not independently confirmed). Until patched, restrict network access to the litellm proxy so the prompt-testing endpoint is not reachable by untrusted clients (e.g. bind to localhost or place behind an authenticating reverse proxy / network ACL), and if the prompt-test feature is not required, block or disable the /prompts/test route at the gateway - the trade-off is loss of the interactive prompt-testing capability. Enabling authentication on the litellm proxy (master key / virtual keys) also reduces exposure but does not fully remediate the unsandboxed template evaluation. Reference the NVD advisory (nvd.nist.gov/vuln/detail/CVE-2026-37004) for updates.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
litellm is a widely used open-source Python proxy/gateway that exposes a unified OpenAI-compatible API in front of many LLM providers, commonly deployed as a network-facing service in AI application stacks. The flaw is a classic CWE-1336 template-engine injection: the prompt-testing feature passes user input into jinja2.Environment without enabling the sandboxed environment or restricting attribute access. Jinja2's default (non-sandboxed) environment allows traversal of Python object internals (e.g. __class__, __mro__, __subclasses__, __builtins__), which is the standard primitive for turning SSTI into full OS command execution. The vulnerable code is identified upstream in litellm/proxy/prompts/prompt_endpoints.py.
Know when Ssti gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Unauthenticated network-reachable SSTI yielding OS command execution gives AV:N/AC:L/PR:N/UI:N with full C:H/I:H/A:H on the proxy host.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 11 pypi packages depend on litellm (11 direct, 0 indirect)
Ecosystem-wide dependent count for version 1.83.7.
Executive ViewAI
BerriAI litellm versions through 1.82.4 contain a critical unauthenticated remote code execution vulnerability allowing attackers to execute arbitrary OS commands on proxy infrastructure without credentials. Any organization deploying litellm as a service gateway faces immediate risk of complete system compromise through this publicly accessible endpoint.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict /prompts/test endpoint access via network firewall or WAF, implement authentication at reverse proxy or API gateway layer, enable comprehensive logging and alerting on endpoint activity, isolate affected litellm instances from production critical systems, and configure input validation to reject Jinja2 template syntax if litellm configuration supports templating restrictions.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. Rated c
Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template e
changedetection.io is an open source web page change detection, website watcher, restock monitor and notification servic
Remote code execution in the WPML WordPress multilingual plugin (versions up to and including 4.6.12) allows Contributor
Server-side template injection in Adobe Commerce, Adobe Commerce B2B, and Magento Open Source allows remote unauthentica
Server-Side Template Injection in OpenCTI notifier templates allows privileged administrators with 'Manage customization
Unauthenticated remote code execution in Rejetto HFS2 (HTTP File Server) through version 2.4.0 lets an attacker execute
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve
A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms all
Server-side template injection in OneBlog v2.3.9 and earlier lets an attacker who can supply FreeMarker template content
Remote code execution in WGDashboard 4.3.2 and earlier lets authenticated attackers inject Server-Side Template Injectio
Gibbon through 26.0.00 allows /modules/School%20Admin/messengerSettings.php Server Side Template Injection leading to Re
EUVD-2026-67271
GHSA-6wvf-77m9-58rm
NVD
CVE.org
EPSS
Exploit-DB