CVE-2026-145671 in LiteLLM
Summary
by MITRE • 12/06/2026
BerriAI LiteLLM before 1.106.9, and later branches before 1.108.6, 1.109.1, and 1.110.0-rc.2, has an incomplete proxy request-body blocklist that omits Azure Entra ID credential parameters. An authenticated user with access to an Azure model can set client_id to an environment variable reference in /v1/chat/completions or /v1/images/generations requests, leaking secrets such as LITELLM_MASTER_KEY via Entra error messages.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 12/06/2026
The vulnerability identified in LiteLLM versions prior to 1.106.9 and specific later branches before 1.108.6, 1.109.1, and 1.110.0-rc.2 represents a critical security flaw within the proxy request-body blocklist mechanism. This software serves as an intermediary layer for Large Language Model APIs, facilitating requests to various backend providers including Azure OpenAI. The core issue stems from an incomplete implementation of input validation rules designed to prevent sensitive data leakage or injection attacks. Specifically, while the system attempts to filter dangerous parameters in HTTP POST bodies sent to endpoints such as /v1/chat/completions and /v1/images/generations, it fails to include Azure Entra ID credential parameters like client_id within its blacklist. This oversight creates a significant gap in defense-in-depth strategies typically employed by API gateways and proxies that handle authentication tokens and secrets for downstream services.
From a technical perspective, the flaw allows an authenticated user who has been granted access to route requests through an Azure model endpoint to manipulate specific request parameters. By setting the client_id parameter to reference an environment variable rather than providing a standard alphanumeric identifier, the attacker exploits how LiteLLM processes these values before forwarding them to the underlying Azure infrastructure. When the proxied service attempts to authenticate using this malformed or maliciously crafted credential input, it triggers error responses from Microsoft Entra ID. These error messages are then propagated back through the LiteLLM proxy to the original client. Crucially, in many configuration scenarios involving development environments or misconfigured logging levels, these backend error details may inadvertently include sensitive information such as internal environment variables, including the LITELLM_MASTER_KEY which controls administrative access to the LiteLLM instance itself.
The operational impact of this vulnerability is severe, primarily centering on unauthorized data exfiltration and potential privilege escalation within the AI infrastructure ecosystem. An attacker with valid authentication credentials for a specific model endpoint can leverage this flaw to extract high-value secrets that are not intended to be exposed via API responses. The leakage of the LITELLM_MASTER_KEY effectively compromises the integrity and security controls of the entire LiteLLM deployment, as this key often grants full administrative control over proxy configurations, routing rules, and potentially other connected model providers. This aligns with CWE-209, which describes an information exposure through an error message that reveals sensitive implementation details to unauthorized actors. Furthermore, it relates to CWE-78, Improper Neutralization of Special Elements used in an OS Command, as the environment variable reference is processed by the system in a way that leads to unintended side effects and data disclosure rather than being safely neutralized or rejected.
In terms of threat modeling, this vulnerability facilitates reconnaissance and credential harvesting activities consistent with MITRE ATT&CK technique T1504, specifically sub-technique T1504.003 which involves Web Session Cookie access if cookies are leaked via error messages, although in this case the primary vector is direct parameter manipulation leading to secret leakage akin to T1529 System Shutdown or Reboot implications where system stability and security posture are degraded through information disclosure. The attack path requires initial authentication but does not require high complexity, making it a viable threat for insider threats or compromised low-privilege accounts within an organization utilizing LiteLLM as their LLM gateway.
Mitigation strategies must focus on immediate patching and configuration hardening. Organizations running affected versions of LiteLLM should upgrade to version 1.106.9 or later, specifically targeting the patched branches at 1.108.6, 1.109.1, or 1.110.0-rc.2 and above where this blocklist has been corrected to include Azure Entra ID credential parameters such as client_id in the validation logic. In addition to upgrading, administrators should review their proxy configurations to ensure that error messages returned by upstream providers like Microsoft are sanitized before being sent back to clients. Implementing strict logging policies that do not expose stack traces or internal variable values in production environments is essential. Furthermore, adopting a principle of least privilege for API keys and ensuring that master keys are stored securely outside of accessible environment variables where possible can reduce the blast radius if similar vulnerabilities exist elsewhere in the infrastructure. Regular security audits focusing on input validation completeness across all supported model providers will help prevent recurrence of such incomplete blocklist issues.