Advisory

GHSA-6wvf-77m9-58rm

Also known as: CVE-2026-37004, PYSEC-2026-3861

Summary

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

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-08-27 21:31 UTC
Modified
2026-09-10 12:25 UTC

Affected packages and fixes

litellm

PyPI · All systems

Affected

  • introduced 0, fixed 1.83.7 (ecosystem)

Fixed versions

1.83.7

Fix

  • Fixed version 1.83.7
    pip install --upgrade litellm==1.83.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences