Skip to content

CVE-2026-42203 LiteLLM: Server-Side Template Injection in /prompts/test endpoint

HighCVSS 8.6 EPSS 0.37%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
Red Hat

Description

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.80.5 to before version 1.83.7, the POST /prompts/test endpoint accepted user-supplied prompt templates and rendered them without sandboxing. A crafted template could run arbitrary code inside the LiteLLM Proxy process. The endpoint only checks that the caller presents a valid proxy API key, so any authenticated user could reach it. Depending on how the proxy is deployed, this could expose secrets in the process environment (such as provider API keys or database credentials) and allow commands to be run on the host. This issue has been patched in version 1.83.7.

Upgrade path

7 packages: 2 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
redhat ansible automation platform All versions No fix listed No fix yet
redhat openshift ai All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
litellm >= 1.80.5, < 1.83.7 1.83.7 Fixed
pypi litellm(PyPI) = 1.80.5; = 1.80.6; = 1.80.7; = 1.80.8 +40 more 1.83.7 Fixed
BerriAI litellm = >= 1.80.5, < 1.83.7 No fix listed Versions listed
redhat exploit intelligence = 0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
BerriAI litellm = >= 1.80.5, < 1.83.7 No fix listed
redhat exploit intelligence = 0 No fix listed
redhat ansible automation platform All versions No fix listed
redhat openshift ai All versions No fix listed
pypi litellm(PyPI) >= 1.80.5, < 1.83.7 1.83.7
pypi litellm(PyPI) = 1.80.10 No fix listed
pypi litellm(PyPI) = 1.80.11 No fix listed
pypi litellm(PyPI) = 1.80.12 No fix listed
pypi litellm(PyPI) = 1.80.13 No fix listed
pypi litellm(PyPI) = 1.80.15 No fix listed
pypi litellm(PyPI) = 1.80.16 No fix listed
pypi litellm(PyPI) = 1.80.17 No fix listed
pypi litellm(PyPI) = 1.80.5 No fix listed
pypi litellm(PyPI) = 1.80.6 No fix listed
pypi litellm(PyPI) = 1.80.7 No fix listed
pypi litellm(PyPI) = 1.80.8 No fix listed
pypi litellm(PyPI) = 1.80.9 No fix listed
pypi litellm(PyPI) = 1.81.0 No fix listed
pypi litellm(PyPI) = 1.81.1 No fix listed
pypi litellm(PyPI) = 1.81.10 No fix listed
pypi litellm(PyPI) = 1.81.11 No fix listed
pypi litellm(PyPI) = 1.81.12 No fix listed
pypi litellm(PyPI) = 1.81.13 No fix listed
pypi litellm(PyPI) = 1.81.14 No fix listed
pypi litellm(PyPI) = 1.81.15 No fix listed
Show 25 more
ProductAffected versionsFixed in
pypi litellm(PyPI) = 1.81.16 No fix listed
pypi litellm(PyPI) = 1.81.3 No fix listed
pypi litellm(PyPI) = 1.81.4 No fix listed
pypi litellm(PyPI) = 1.81.5 No fix listed
pypi litellm(PyPI) = 1.81.6 No fix listed
pypi litellm(PyPI) = 1.81.7 No fix listed
pypi litellm(PyPI) = 1.81.8 No fix listed
pypi litellm(PyPI) = 1.81.9 No fix listed
pypi litellm(PyPI) = 1.81.9.dev1 No fix listed
pypi litellm(PyPI) = 1.82.0 No fix listed
pypi litellm(PyPI) = 1.82.1 No fix listed
pypi litellm(PyPI) = 1.82.2 No fix listed
pypi litellm(PyPI) = 1.82.3 No fix listed
pypi litellm(PyPI) = 1.82.4 No fix listed
pypi litellm(PyPI) = 1.82.5 No fix listed
pypi litellm(PyPI) = 1.82.6 No fix listed
pypi litellm(PyPI) = 1.83.0 No fix listed
pypi litellm(PyPI) = 1.83.1 No fix listed
pypi litellm(PyPI) = 1.83.2 No fix listed
pypi litellm(PyPI) = 1.83.3 No fix listed
pypi litellm(PyPI) = 1.83.4 No fix listed
pypi litellm(PyPI) = 1.83.5 No fix listed
pypi litellm(PyPI) = 1.83.6 No fix listed
redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
litellm >= 1.80.5, < 1.83.7 1.83.7

References