Skip to main content

litellm EUVDEUVD-2026-67271

| CVE-2026-37004 CRITICAL
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-08-27 mitre GHSA-6wvf-77m9-58rm
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed litellm proxy
  2. Delivery
    POST crafted dotprompt_content to /prompts/test
  3. Exploit
    Trigger unsandboxed Jinja2 SSTI
  4. Execution
    Escape to Python builtins
  5. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

Affected Packages

pypi litellm fix: 1.83.7

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

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 10.0 CRITICAL

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Aug 31, 2026 - 21:22 NVD
9.8 (CRITICAL)
CVE Published
Aug 27, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 27, 2026 - 00:00 cve.org
CRITICAL 9.8

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 11 pypi packages depend on litellm (11 direct, 0 indirect)

Ecosystem-wide dependent count for version 1.83.7.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Medium
popular open-source LLM proxy/gateway, common in AI stacks but not universal
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

More in Ssti

View all
CVE-2024-23692 CRITICAL POC
9.8 May 31

Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. Rated c

CVE-2025-47916 CRITICAL POC
10.0 May 16

Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template e

CVE-2024-32651 CRITICAL POC
10.0 Apr 26

changedetection.io is an open source web page change detection, website watcher, restock monitor and notification servic

CVE-2024-6386 CRITICAL POC
9.9 Aug 21

Remote code execution in the WPML WordPress multilingual plugin (versions up to and including 4.6.12) allows Contributor

CVE-2026-75650 CRITICAL POC
10.0 Sep 07

Server-side template injection in Adobe Commerce, Adobe Commerce B2B, and Magento Open Source allows remote unauthentica

CVE-2026-39980 CRITICAL POC
9.1 Apr 09

Server-Side Template Injection in OpenCTI notifier templates allows privileged administrators with 'Manage customization

CVE-2026-97359 CRITICAL POC
10.0 Sep 24

Unauthenticated remote code execution in Rejetto HFS2 (HTTP File Server) through version 2.4.0 lets an attacker execute

CVE-2025-23211 CRITICAL POC
9.9 Jan 28

Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve

CVE-2024-4040 CRITICAL POC
10.0 Apr 22

A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms all

CVE-2025-60355 CRITICAL POC
9.8 Oct 28

Server-side template injection in OneBlog v2.3.9 and earlier lets an attacker who can supply FreeMarker template content

CVE-2026-15734 CRITICAL POC
9.8 Aug 06

Remote code execution in WGDashboard 4.3.2 and earlier lets authenticated attackers inject Server-Side Template Injectio

CVE-2024-24724 CRITICAL POC
9.8 Apr 03

Gibbon through 26.0.00 allows /modules/School%20Admin/messengerSettings.php Server Side Template Injection leading to Re

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy