LiteLLM vulnerabilities
40 known CVE vulnerabilities in LiteLLM, translated and rated.
- CVE-2026-145672Critical
LiteLLM before 1.103.10, 1.104.x before 1.104.8, 1.105.x before 1.105.6, and 1.106.x before 1.106.5 contains an unauthenticated file read vulnerability on Enterprise-licensed proxies. Callback parameters such as gcs_path_service_account control a local file path that the proxy reads and sends to an attacker-chosen URL.
- CVE-2026-114612Critical
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From 1.87.0 until 1.100.4, 1.101.3, 1.102.2, 1.103.1, and 1.104.0-rc.2, the proxy reuses one cryptographic context for at-rest secrets and session tokens, allowing an authenticated internal user to have crafted metadata containing a forged administrator credential encrypted and returned by the API-key flow. Replaying that ciphertext as a bearer token causes the proxy to trust the forged proxy administrator identity, permitting administrative access and arbitrary commands through the MCP stdio endpoint. Versions 1.87.0 through 1.90.x require EXPERIMENTAL_UI_LOGIN to be enabled, while versions after 1.91.0 are exploitable in the default configuration. This issue was fixed in LiteLLM 1.100.4, 1.101.3, 1.102.2, 1.103.1, and 1.104.0-rc.2.
- CVE-2026-59823Medium
Prior to 1.83.9, an authenticated LiteLLM Proxy caller with a valid virtual key can place api_base inside the user_config request body to bypass is_request_body_safe, which blocks top-level api_base and base_url but previously did not inspect or reject user_config. Because user_config constructs the outbound router, the nested destination redirects a server-side request to an internal or external host selected by the caller.
- CVE-2026-37004Critical
BerriAI litellm <=1.82.4 is vulnerable to Server-Side Template Injection (SSTI), allowing 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.
- CVE-2026-30623Critical
LiteLLM 1.18.10 contains a remote code execution vulnerability in its MCP server creation functionality. The application allows users to add MCP servers via a JSON configuration specifying arbitrary command and args values, which are executed on the host without validation. This enables attackers to run arbitrary operating system commands.
- CVE-2026-59822HighActively exploited
LiteLLM before version 1.84.0 has a vulnerability in the MCP Streamable HTTP endpoint that allows an unauthenticated attacker to bypass LiteLLM key validation using a crafted Authorization header. The attacker can exploit the OAuth2 passthrough fallback path to replace failed key validation with an empty UserAPIKeyAuth() object, allowing requests to reach MCP tooling without a valid key.
- CVE-2026-49468Critical
LiteLLM proxy before version 1.84.0 has a Host-header parsing flaw that, under specific conditions, allows unauthenticated access to protected management routes. The issue arises from a mismatch between the route evaluated by the auth layer and the route actually dispatched by FastAPI.
- CVE-2026-42271HighActively exploited
LiteLLM versions 1.74.2 through 1.83.6 have a vulnerability in the POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list endpoints, which accept a full MCP server configuration including commands to execute. An authenticated user with any API key can run arbitrary commands on the proxy host.
- CVE-2026-42208CriticalActively exploited
In LiteLLM versions from 1.81.16 to before 1.83.7, a database query used during proxy API key checks is vulnerable to SQL injection due to mixing caller-supplied key value into the query text. An unauthenticated attacker can send a crafted Authorization header to any LLM API route, leading to reading and potentially modifying data in the proxy's database.
- CVE-2026-40217HighActively exploited
A vulnerability in LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
- CVE-2026-35030Critical
In LiteLLM prior to 1.83.0, when JWT authentication is enabled (enable_jwt_auth: true), the OIDC userinfo cache uses the first 20 characters of the token as the cache key. JWT tokens produced by the same signing algorithm have identical first 20 characters, allowing an unauthenticated attacker to craft a token matching the cache and inherit a legitimate user's identity and permissions.
- CVE-2026-35029High
LiteLLM before version 1.83.0 has a vulnerability where the /config/update endpoint does not enforce admin role authorization. An authenticated user can modify proxy configuration, environment variables, and register custom pass-through endpoint handlers, leading to remote code execution, arbitrary file reading, and takeover of privileged accounts.
- CVE-2026-145676High
LiteLLM before 1.83.0 contains an authentication bypass vulnerability that allows authenticated users to log in as other users by replaying exposed unsalted SHA-256 password hashes. Attackers can retrieve password hashes from the /user/info, /user/update, or /spend/users endpoints and submit them to /v2/login.
- CVE-2026-145675Medium
BerriAI LiteLLM before 1.106.12, 1.108.x before 1.108.13, 1.109.x before 1.109.3, and 1.110.x before 1.110.2 contains an authorization flaw in the /key/info endpoint that lets non-admin virtual keys not assigned to a user read the stored records of other userless keys. Attackers holding a service-account or userless key can query keys belonging to other teams to expose their aliases, teams, allowed models, budgets, spend, and metadata.
- CVE-2026-145674Medium
BerriAI LiteLLM from 1.65.5 before 1.85.0 contains a reflected cross-site scripting vulnerability in the unauthenticated /sso/debug/callback endpoint, which reflects identity-provider fields into an inline script block via json.dumps without HTML escaping. Attackers with an IdP account can set a claim such as a display name containing </script>, complete the SSO flow, and send the callback URL to a proxy admin to steal session cookies and take over the account.
- CVE-2026-145673High
BerriAI LiteLLM before 1.88.6, 1.89.x before 1.89.7, 1.90.x before 1.90.7, 1.91.x before 1.91.5, 1.92.x before 1.92.2, 1.93.x before 1.93.2, and 1.94.x before 1.94.3 lets authenticated users pass Vertex AI credentials in request_body to /utils/transform_request because the request-body blocklist omits vertex_ai_credentials. Attackers can supply a Google external_account credential to make the proxy read local files such as /proc/self/environ and send them to an attacker-controlled token_url.
- CVE-2026-145671High
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.
- CVE-2026-136540Medium
LiteLLM contains an information disclosure vulnerability in the Secret Manager oidc resolver. The lack of proper validation of user-supplied input before using it to access environment variables allows an authenticated remote attacker to disclose sensitive information and, in conjunction with other vulnerabilities, execute arbitrary code in the context of the service account.
- CVE-2026-136539High
LiteLLM contains a pass-through endpoint code injection remote code execution vulnerability. The lack of proper validation of code before it is executed via module import allows an authenticated remote attacker to execute arbitrary code in the context of the service account.
- CVE-2026-136538Medium
A vulnerability in LiteLLM allows an authenticated remote attacker to escalate privileges due to incorrect authorization in the handling of virtual key model aliases. The attacker can gain access to resources normally protected from the user.
- CVE-2026-136537Medium
A vulnerability in the LiteLLM key_management_endpoints module results from missing authorization before allowing access to functionality, enabling an authenticated remote attacker to bypass security features and escalate privileges. The attacker can access resources normally protected from the user.
- CVE-2026-136536Medium
An SSRF vulnerability in LiteLLM's handling of the api_base parameter in chat completion requests results from lack of proper URI validation before accessing resources. An authenticated remote attacker can disclose sensitive information in the context of the service account.
- CVE-2026-136535High
LiteLLM contains an MCP command injection remote code execution vulnerability. The lack of proper validation of a user-supplied string before using it to execute a system call allows an authenticated remote attacker to execute arbitrary code in the context of the service account.
- CVE-2026-108575Medium
A vulnerability has been found in BerriAI LiteLLM up to 1.94.0. This affects the function get_secret of the file secret_managers/main.py of the component Secret Resolution. The manipulation of the argument api_key leads to improper authorization. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
- CVE-2026-108574Medium
A flaw has been found in BerriAI LiteLLM up to 1.95.0. Affected by this issue is the function ui_view_session_spend_logs of the file litellm/proxy/spend_tracking/spend_management_endpoints.py of the component Spend Tracking. Executing a manipulation of the argument session_id can lead to authorization bypass. It is possible to launch the attack remotely. The exploit has been published and may be used. Upgrading to version 1.96.0 can resolve this issue. This patch is called 722d9ffa4f6c5ae15702ab9ab2c5f6bf1688308b. The affected component should be upgraded.
- CVE-2026-93355High
LiteLLM contains a weak authentication vulnerability that allows an attacker holding a valid JWT from the configured identity provider to authenticate as any existing user by exploiting an email-based fallback lookup in the JWT authentication flow without verifying the email_verified claim. Attackers can present a token with an unverified email address matching a victim's account to inherit the victim's role, including proxy_admin privileges, and permanently overwrite the victim's stored identity binding to retain persistent unauthorized access to administrative endpoints exposing API keys and user management.
- CVE-2026-89032High
Vulnerability in BerriAI LiteLLM before 1.101.0-rc.1, allowing tenant isolation bypass in the semantic cache layer. Authenticated users can read other tenants' cached responses by exploiting a metadata key mismatch between _get_semantic_cache_tenant_scope() and _get_metadata_variable_name(). Attackers with a valid virtual key can submit semantically similar prompts to retrieve cached responses containing other tenants' PII, financial data, or source code, and can cause agentic front-ends to auto-execute attacker-supplied tool calls under victim credentials.
- CVE-2026-84377Medium
In LiteLLM prior to versions 1.88.6 and 1.96.2, a vulnerability allowed any authenticated proxy user to redirect an outbound provider call to a destination the user controls and cause the proxy to send its configured provider credentials to that destination. Request validation in several files used incomplete checks that did not cover every sensitive parameter or inspect equivalent values across nested request fields, path values, and bracket-notation form data. Routing and credential parameters including api_base, base_url, model_list, fallbacks, and litellm_credential_name could therefore be applied without clearing the operator's stored key, exposing upstream provider credentials and other configured secrets and permitting server-side requests to internal services reachable by the proxy.
- CVE-2026-59821High
LiteLLM prior to version 1.82.0-stable did not apply proper sandboxing and validation for Custom Code Guardrails during creation and update, allowing a privileged user to execute arbitrary Python code in the proxy environment and potentially expose process secrets.
- CVE-2026-59820Medium
LiteLLM before version 1.83.7-stable has a vulnerability due to insufficient file path validation when extracting Skills ZIP archives. An authenticated user with access to LLM API routes or a key with /v1/skills, anthropic_routes, or llm_api_routes can upload a crafted archive that writes files outside the intended directory (path traversal).
- CVE-2026-59819Medium
LiteLLM before version 1.83.10-stable has a vulnerability in the /health/test_connection endpoint that allows reading files from the local filesystem via oidc/file/ references. The flaw is due to the server resolving request-supplied environment and OIDC file references in litellm_params.
- CVE-2026-47102High
LiteLLM prior to version 1.83.10 allows a user to modify their own role via the /user/update endpoint. The endpoint restricts access to the user's own account but does not validate which fields can be changed. A user can set their role to proxy_admin, gaining full administrative access to all users, teams, keys, models, and prompt history.
- CVE-2026-47101High
LiteLLM prior to 1.83.14 allows an authenticated internal_user to create API keys with access to routes that their role does not permit. The allowed_routes field is stored without verifying that the specified routes fall within the user's own permissions, enabling privilege escalation to proxy_admin.
- CVE-2026-42203High
LiteLLM versions 1.80.5 through 1.83.7 have a vulnerability in the POST /prompts/test endpoint that accepts user-supplied prompt templates and renders them without sandboxing. A crafted template can execute arbitrary code within the LiteLLM Proxy process.
- CVE-2025-11203Low
LiteLLM contains an information disclosure vulnerability in the health API related to the API_KEY parameter. An authenticated remote attacker could disclose sensitive information because the health endpoint improperly exposes data to unauthorized actors. This may lead to leakage of stored credentials and further compromise.
- CVE-2025-45809Medium
SQL Injection vulnerability in BerriAI LiteLLM before 1.81.0 allows attackers to execute arbitrary commands via the key parameter to the "/key/block" and "/key/unblock" API endpoints. The vulnerability enables manipulation of SQL queries, potentially leading to unauthorized data access or code execution.
- CVE-2025-0330High
In berriai/litellm version v1.52.1, an issue in proxy_server.py causes the leakage of Langfuse API keys when an error occurs while parsing team settings. This vulnerability exposes sensitive information, including langfuse_secret and langfuse_public_key, which can provide full access to the Langfuse project storing all requests.
- CVE-2024-9606High
In berriai/litellm before version 1.44.12, the litellm/litellm_core_utils/litellm_logging.py file contains a vulnerability where the API key masking code only masks the first 5 characters. This leaks almost the entire API key in the logs. The issue affects version v1.44.9.
- CVE-2024-8984High
A Denial of Service (DoS) vulnerability exists in berriai/litellm version v1.44.5. This vulnerability can be exploited by appending characters, such as dashes (-), to the end of a multipart boundary in an HTTP request. The server continuously processes each character, leading to excessive resource consumption and rendering the service unavailable. The issue is unauthenticated and does not require any user interaction, impacting all users of the service.
- CVE-2024-6825High
BerriAI/litellm version 1.40.12 contains a vulnerability that allows remote code execution. The issue exists in the handling of the 'post_call_rules' configuration, where a callback function can be added; the provided value is split at the final '.' mark, with the last part considered the function name, allowing an attacker to set a system method such as 'os.system' as a callback.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

