VDB
Sign up
CRITICAL9.8

GHSA-6wvf-77m9-58rm

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

Quick fix

GHSA-6wvf-77m9-58rm — litellm: upgrade to the fixed version with the command below.

pip install --upgrade 'litellm>=1.83.7'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/litellm
Introduced in: 0Fixed in: 1.83.7
Fixpip install --upgrade 'litellm>=1.83.7'

References