---
schema_version: '1.0'
id: security-20260909-2bf59b
title: 'CVE-2026-37004: LiteLLM vulnerable to server-side template injection in the
  /prompts/test endpoint'
url: https://osv.dev/vulnerability/GHSA-6wvf-77m9-58rm
url_hash: 2bf59b1b6e5cc199f27ffa51deff70663afacddae1c782669d10763c4bccdf2b
canonical_url: https://osv.dev/vulnerability/GHSA-6wvf-77m9-58rm
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-37004
- GHSA-6wvf-77m9-58rm
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- litellm
- PyPI
lang: en
published_at: '2026-08-27T21:31:31Z'
fetched_at: '2026-09-09T15:41:01.536113Z'
updated_at: '2026-09-09T15:52:38Z'
status: published
content_hash: d2acb1796860cb6eab166e18906799c73a2107af86b970af004630402f47d768
content_changed_at: null
license_note: full
summary: LiteLLM vulnerable to server-side template injection in the /prompts/test
  endpoint
summary_source: rss
summary_en: LiteLLM vulnerable to server-side template injection in the /prompts/test
  endpoint
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-37004
- endpoint
- GHSA-6wvf-77m9-58rm
- injection
- library vulnerability
- LiteLLM
- prompts
- PyPI
- server-side
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- software security
- template
- test
- the
- vulnerable
- wiki_templates
entities_en:
- name: CVE
  type: data
- name: LiteLLM
  type: organization
- name: wiki_templates
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: LiteLLM
  type: organization
- name: wiki_templates
  type: artifact
key_facts: []
related: []
related_auto:
- name: 集団的免疫力
  type: concept
  weight: 1.0
- name: my-proxy-mcp
  type: location
  weight: 1.0
computed_at: '2026-09-09T15:52:37Z'
---

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

## TL;DR
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint

## Key Points
- cve / CVE-2026-37004 / GHSA-6wvf-77m9-58rm / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H / litellm / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
**Advisory:** GHSA-6wvf-77m9-58rm (CVE-2026-37004)

**Details:**
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:**
- https://nvd.nist.gov/vuln/detail/CVE-2026-37004
- https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c
- https://github.com/BerriAI/litellm
- https://github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
- https://yerangamage.com/cves/detail/?slug=litellm-ssti-rce

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-6wvf-77m9-58rm_

## Source
元記事: [CVE-2026-37004: LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint](https://osv.dev/vulnerability/GHSA-6wvf-77m9-58rm) — published 2026-08-27T21:31:31Z
