Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. litellm
  4. ›
  5. CVE-2026-37004

CVE-2026-37004: LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint

August 27, 2026 (updated September 8, 2026)

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.

References

  • github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py
  • github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c
  • github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
  • github.com/advisories/GHSA-6wvf-77m9-58rm
  • nvd.nist.gov/vuln/detail/CVE-2026-37004
  • yerangamage.com/cves/detail/?slug=litellm-ssti-rce

Code Behaviors & Features

Detect and mitigate CVE-2026-37004 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.83.7

Fixed versions

  • 1.83.7

Solution

Upgrade to version 1.83.7 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine

Source file

pypi/litellm/CVE-2026-37004.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:22:07 +0000.