Skip to content
BerriAI/litellm·Indexed by this site · Originally published· Event →SelectedAttention40

LiteLLM vulnerability: authenticated users of Azure deployments can steal keys via Entra credential parameters, fixed in versions such as 1.106.9

Authenticated secret exfiltration via Azure Entra credential parameters in the request body

AI summary

The LiteLLM proxy has an authenticated key exfiltration vulnerability (GHSA-2rwg-2wh4-7c4f): a low-privilege authenticated user with access to Azure models can use it to read the proxy process's environment variables and the contents of files pointed to by environment variables. The proxy's request-body blocklist does not cover six Azure Entra ID credential parameters: tenant_id, client_id, client_secret, azure_username, azure_password and azure_scope. An authenticated user can pass these parameters in the request body when calling azure/ or azure_ai/ models, overriding the Azure credentials the deployment was originally meant to use; the user can also set client_id to a reference pointing to a server-side environment variable (such as LITELLM_MASTER_KEY), and after Entra rejects the resolved value on the grounds of an unknown application, the proxy returns the error containing this value to the caller.

Why it was selected

Affected are deployments configured with Azure models and without AZURE_API_KEY or AZURE_OPENAI_API_KEY set; operators can check against this and upgrade.

Read originalgithub.com