cve.bz

CVE-2026-37004

9.8 criticalEPSS 0.8%Fix available

Critical (9.8). EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in litellm 1.83.7.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-08-31. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • litellm (PyPI): fixed in 1.83.7

Ask an AI about this CVE

Show the promptExplain CVE-2026-37004 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-37004?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-37004?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-37004 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6wvf-77m9-58rmPyPIlitellm<1.83.71.83.7
PYSEC-2026-3861PyPIlitellm<1.83.71.83.7

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This vulnerability is rated as Critical severity because unauthenticated remote attackers can execute arbitrary code on the underlying host with the privileges of the application process, requiring no user interaction or prior credentials. In environments where the proxy interface is directly exposed to untrusted networks, exploitation allows full compromise of the application host and its resources. Deployments operating behind strict ingress access controls or within isolated internal networks face reduced reachability, though any network client capable of reaching the HTTP service can trigger the flaw.

Red Hat's mitigation

Limit exposure by restricting network access to the litellm service to localhost or trusted internal networks, or configure an upstream reverse proxy or ingress controller to block requests directed to the `/prompts/test` path.

If restricting service access to a trusted subnet using firewalld (for example, service port 4000 and trusted network 192.168.1.0/24):

```

firewall-cmd --permanent --zone=drop --add-port=4000/tcp

firewall-cmd --permanent --zone=trusted --add-source=192.168.1.0/24

firewall-cmd --reload

```

If utilizing an upstream reverse proxy (such as Nginx), block requests targeting the vulnerable endpoint:

```

location = /prompts/test {

return 403;

}

```

Warning: Reloading firewall rules or proxy services may temporarily disrupt established network connections. Blocking the endpoint will disable prompt testing capabilities for clients.

ProductPackageStateAdvisory
Exploit Intelligenceexploit-intelligence/vulnerability-analysis-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-llama-stack-core-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th-torch-cpu-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th-torch-cuda-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-37004.

References

Check your stackJSON