REDHAT-BUG-2467917: High severity LiteLLM vulnerability

Published May 8, 2026
·
Updated

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.

Affected Software

1 affected component
LiteLLM>=1.80.5<1.83.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade LiteLLM Proxy to a version that resolves this vulnerability.

    Fixed in 1.83.7

Event History

May 8, 2026
Data Sourced
via Red Hat·04:02 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

Any user who has a valid LiteLLM Proxy API key can access the affected endpoint. The endpoint does not require additional privileges beyond authentication with a proxy API key.

2

What could an attacker gain from successful exploitation?

A crafted prompt template can execute arbitrary code in the LiteLLM Proxy process. Depending on deployment, this may expose process environment secrets such as provider API keys or database credentials and permit commands to run on the host.

3

Which versions are affected and what version fixes the issue?

LiteLLM versions from 1.80.5 up to, but not including, 1.83.7 are affected. The issue is patched in version 1.83.7.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203