NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
CRITICAL severity

CVE-2026-37004 — litellm

CRITICALFix: BerriAI/litellm@d910a95

CVE-2026-37004 is a critical-severity (CVSS 9.8) CWE-1336 vulnerability in litellm. A fix is available for litellm — see the affected versions and patch details below.

LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint

Also known asPYSEC-2026-3861
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 28, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-37004.

EPSS Exploitation Probability

via FIRST.org ↗
0.8%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs53th percentile — riskier than 53% of all scored CVEsHighest risk
0.05%0.47%0.88%1.30%0.5%0.8%0.8%0.8%Sep 26Nov 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐍litellm

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIlitellmall versions1.83.7pip install --upgrade 'litellm==1.83.7'

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for litellm, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update litellm to 1.83.7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-37004 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatCritical

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…

Workaround published by Red Hat
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…
Source: Red Hat security advisory for CVE-2026-37004 (CC BY 4.0)
ProductFixed inAdvisory
Exploit Intelligence 3.1exploit-intelligence/vulnerability-analysis-rhel9:1794542867RHSA-2026:102223

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2026-37004 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2026-37004: litellm — Fixed in 1.83.7