## Summary
An authenticated LiteLLM proxy user could read arbitrary local files from the proxy runtime by sending a crafted `vertex_ai_credentials` value to `/utils/transform_request`. The request-body safety blocklist rejected `vertex_credentials` but missed its alias `verte...
Vulnerable Range:
0 -> 1.95.0
### Summary
The `/sso/debug/callback` endpoint reflected identity-provider-controlled fields into an inline `<script>` block via `json.dumps`, which escapes JSON string syntax but not HTML context characters such as `</script>`. An IdP-returned string field containing `</scri...
Vulnerable Range:
1.65.5 -> 1.85.0
### Summary
An authenticated user with `internal_user` privileges can escalate to `proxy_admin` and achieve remote code execution. The proxy uses one encryption key for two purposes: sealing secrets at rest and minting session tokens. An attacker exploits this by requesting a...
Vulnerable Range:
1.91.0 -> 1.100.4, 1.101.0 -> 1.101.3, 1.102.0 -> 1.102.2
### Impact
Any authenticated LiteLLM proxy user could redirect an outbound provider call to a destination they control and cause the proxy to send its own configured provider credentials to that destination. The proxy's request-body validation was a denylist that did not cove...
Vulnerable Range:
0 -> 1.88.6
LiteLLM Proxy has server-side request forgery via the `user_config` request parameter
### Summary
A server-side request forgery in LiteLLM Proxy lets an authenticated caller redirect the
proxy's outbound request to a host of their choosing by smuggling an `api_base` inside the
`user_config` request body, bypassing the existing parameter guard.
### Details
Lite...
Vulnerable Range:
0 -> 1.83.9
Fix Version:
1.83.9
BerriAI litellm: SSO Login Does Not Invalidate Previous UI Session Tokens
A vulnerability was identified in BerriAI litellm up to 1.82.2. This impacts the function get_redirect_response_from_openid of the file litellm/proxy/management_endpoints/ui_sso.py of the component SSO Authentication Flow. The manipulation leads to session expiration. The atta...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader
A weakness has been identified in BerriAI litellm up to 1.82.2. Affected by this vulnerability is the function load_openapi_spec_async of the file litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py of the component MCP OpenAPI Spec Loader. This manipulation of ...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
BerriAI litellm: UI User Enumeration leads to System-Wide Information Disclosure
A security vulnerability has been detected in BerriAI litellm up to 1.82.2. Affected by this issue is the function ui_view_users of the file litellm/proxy/management_endpoints/internal_user_endpoints.py of the component Incomplete Fix CVE-2025-0628. Such manipulation leads to ...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
BerriAI litellm has Security Feature Bypass in BannedKeywords and AzureContentSafety Guardrails via call_type Mismatch on Async Endpoints
A security flaw has been discovered in BerriAI litellm up to 1.82.5. Affected is the function async_pre_call_hook of the file enterprise/enterprise_hooks/banned_keywords.py of the component Completions Interface. The manipulation of the argument prompt results in incorrect aut...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
LiteLLM: SSO Debug Flow Has Improper Authentication
A vulnerability was determined in BerriAI litellm up to 1.82.2. This affects the function json.dumps of the file litellm/proxy/management_endpoints/ui_sso.py of the component SSO Debug Flow. Executing a manipulation can lead to missing authentication. The attack can be execute...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
A weakness has been identified in BerriAI litellm up to 1.59.8. Affected is the function UserAPIKeyAuth of the file litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py of the component MCP Proxy. Executing a manipulation can lead to improper authentication. Th...
Vulnerable Range:
0 -> 1.84.0
LiteLLM: M2M JWT Handler Has Improper Authorization
A vulnerability was identified in BerriAI litellm up to 1.82.2. This affects an unknown function of the file litellm/proxy/auth/user_api_key_auth.py of the component M2M JWT Handler. Such manipulation leads to improper authorization. The attack can be launched remotely. A high...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
LiteLLM: PROXY_ADMIN database API Key Generator Has Insufficient Session Expiration
A security flaw has been discovered in BerriAI litellm up to 1.82.2. This impacts the function authenticate_user of the file litellm/proxy/auth/login_utils.py of the component PROXY_ADMIN database API Key Generator. Performing a manipulation results in session expiration. The ...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
LiteLLM: Admin Key Handler Has Improper Authorization
A vulnerability was determined in BerriAI litellm up to 1.63.1. The impacted element is an unknown function of the file litellm/proxy/management_endpoints/key_management_endpoints.py of the component Admin Key Handler. This manipulation causes improper authorization. The attac...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
### Impact
Any authenticated LiteLLM proxy user could redirect an outbound provider call to a destination they control and cause the proxy to send its own configured provider credentials to that destination. The proxy's request-body validation was a denylist that did not cove...
Vulnerable Range:
0 -> 1.88.6, 1.89.0 -> 1.89.7, 1.90.0 -> 1.90.7
LiteLLM Proxy has server-side request forgery via the `user_config` request parameter
### Summary
A server-side request forgery in LiteLLM Proxy lets an authenticated caller redirect the
proxy's outbound request to a host of their choosing by smuggling an `api_base` inside the
`user_config` request body, bypassing the existing parameter guard.
### Details
Lite...
Vulnerable Range:
0 -> 1.83.9
Fix Version:
1.83.9
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
BerriAI litellm <=1.82.4 is vulnerable to Server-Side Template Injection (SSTI), which allows 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.
Vulnerable Range:
0 -> 1.83.7
Fix Version:
1.83.7
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
BerriAI litellm <=1.82.4 is vulnerable to Server-Side Template Injection (SSTI), which allows 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.
Vulnerable Range:
0 -> 1.83.7
Fix Version:
1.83.7
LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks
### Impact
LiteLLM's Custom Code Guardrails production create/update paths did not apply the same sandboxing and validation used by the test endpoint.
A privileged user with access to create or update guardrails could submit custom Python code that executed in the LiteLLM pr...
Vulnerable Range:
0 -> 1.82.0
Fix Version:
1.82.0
### Impact
LiteLLM's MCP Streamable HTTP endpoint could allow an unauthenticated attacker to establish an authenticated MCP session using an arbitrary Bearer token.
The MCP auth handler supported OAuth2 passthrough for upstream MCP servers, but the fallback path could replac...
Vulnerable Range:
0 -> 1.84.0
LiteLLM: Local file read via request-supplied OIDC file references
### Impact
LiteLLM's `/health/test_connection` endpoint resolved request-supplied environment and OIDC file references in `litellm_params`. A proxy administrator, or another privileged caller with permission to test model connections, could cause LiteLLM to read files from th...
Vulnerable Range:
0 -> 1.83.10
Fix Version:
1.83.10
LiteLLM: Arbitrary file write via path traversal in Skills archive extraction
### Impact
LiteLLM Skills archive extraction did not sufficiently validate file paths from uploaded skill ZIP archives. An authenticated user with access to LiteLLM LLM API routes, or a key whose `allowed_routes` includes `/v1/skills`, `anthropic_routes`, or `llm_api_routes`,...
Vulnerable Range:
0 -> 1.83.7
Fix Version:
1.83.7
LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks
### Impact
LiteLLM's Custom Code Guardrails production create/update paths did not apply the same sandboxing and validation used by the test endpoint.
A privileged user with access to create or update guardrails could submit custom Python code that executed in the LiteLLM pr...
Vulnerable Range:
0 -> 1.82.0
Fix Version:
1.82.0
### Impact
LiteLLM's MCP Streamable HTTP endpoint could allow an unauthenticated attacker to establish an authenticated MCP session using an arbitrary Bearer token.
The MCP auth handler supported OAuth2 passthrough for upstream MCP servers, but the fallback path could replac...
Vulnerable Range:
0 -> 1.84.0
LiteLLM: Local file read via request-supplied OIDC file references
### Impact
LiteLLM's `/health/test_connection` endpoint resolved request-supplied environment and OIDC file references in `litellm_params`. A proxy administrator, or another privileged caller with permission to test model connections, could cause LiteLLM to read files from th...
Vulnerable Range:
0 -> 1.83.10
Fix Version:
1.83.10
LiteLLM: Arbitrary file write via path traversal in Skills archive extraction
### Impact
LiteLLM Skills archive extraction did not sufficiently validate file paths from uploaded skill ZIP archives. An authenticated user with access to LiteLLM LLM API routes, or a key whose `allowed_routes` includes `/v1/skills`, `anthropic_routes`, or `llm_api_routes`,...
Vulnerable Range:
0 -> 1.83.7
Fix Version:
1.83.7
LiteLLM allows a user to modify their own user_role via the /user/update endpoint
LiteLLM prior to 1.83.10 allows a user to modify their own user_role via the /user/update endpoint. While the endpoint correctly restricts users to updating only their own account, it does not restrict which fields may be changed. A user who can reach this endpoint can set the...
Vulnerable Range:
0 -> 1.83.10
Fix Version:
1.83.10
LiteLLM allows an authenticated internal_user to create API keys with access to routes that their role does not permit
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. When generating a key, the allowed_routes field is stored without verifying that the specified routes fall within the user's own permissions...
Vulnerable Range:
0 -> 1.83.14
Fix Version:
1.83.14
LiteLLM has a sandbox escape in custom-code guardrail
### Impact
The `POST /guardrails/test_custom_code` endpoint runs user-supplied Python inside a hand-rolled sandbox. The sandbox can be escaped using bytecode-level techniques, allowing arbitrary code execution in the proxy process - which runs as root in the default Docker im...
Vulnerable Range:
1.81.8 -> 1.83.10
Fix Version:
1.83.10
LiteLLM: Authenticated command execution via MCP stdio test endpoints
### Impact
Two endpoints used to preview an MCP server before saving it - `POST /mcp-rest/test/connection` and `POST /mcp-rest/test/tools/list` - accepted a full server configuration in the request body, including the `command`, `args`, and `env` fields used by the stdio tran...
Vulnerable Range:
1.74.2 -> 1.83.7
Fix Version:
1.83.7
LiteLLM: Server-Side Template Injection in /prompts/test endpoint
### Impact
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...
Vulnerable Range:
1.80.5 -> 1.83.7
Fix Version:
1.83.7
LiteLLM: Privilege escalation via unrestricted proxy configuration endpoint
### Impact
The `/config/update endpoint` does not enforce admin role authorization. A user who is already authenticated into the platform can then use this endpoint to do the following:
- Modify proxy configuration and environment variables
- Register custom pass-through...
Vulnerable Range:
0 -> 1.83.0
Fix Version:
1.83.0
LiteLLM Has a Leakage of Langfuse API Keys
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...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
LiteLLM Has an Improper Authorization Vulnerability
An improper authorization vulnerability exists in the main-latest version of BerriAI/litellm. When a user with the role 'internal_user_viewer' logs into the application, they are provided with an overly privileged API key. This key can be used to access all the admin functiona...
Vulnerable Range:
0 -> 1.61.15
Fix Version:
1.61.15
LiteLLM Reveals Portion of API Key via a Logging File
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 of the key. This results in the leakage of almost the entire API key in the logs, expos...
Vulnerable Range:
0 -> 1.44.12
Fix Version:
1.44.12
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 ...
Vulnerable Range:
0 -> 1.56.2
LiteLLM Vulnerable to Remote Code Execution (RCE)
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 co...
Vulnerable Range:
1.40.3.dev2 -> unfixed
Fix Version:
Review Advisory
LiteLLM Vulnerable to Denial of Service (DoS)
A vulnerability in BerriAI/litellm, as of commit 26c03c9, allows unauthenticated users to cause a Denial of Service (DoS) by exploiting the use of ast.literal_eval to parse user input. This function is not safe and is prone to DoS attacks, which can crash the litellm Python se...
Vulnerable Range:
0 -> 1.53.1.dev1
Fix Version:
1.53.1.dev1
LiteLLM Server-Side Request Forgery (SSRF) vulnerability
A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. This vulnerability allows users to specify the `api_base` parameter when making requests to `POST /chat/completions`, causing the application to send the request to the domain specifi...
Vulnerable Range:
0 -> 1.44.8
Fix Version:
1.44.8
litellm vulnerable to improper access control in team management
berriai/litellm version 1.34.34 is vulnerable to improper access control in its team management functionality. This vulnerability allows attackers to perform unauthorized actions such as creating, updating, viewing, deleting, blocking, and unblocking any teams, as well as addi...
Vulnerable Range:
0 -> 1.40.15
Fix Version:
1.40.15
SQL injection in litellm
An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the `/global/spend/logs` endpoint. The vulnerability arises due to improper neutralization of special elements used in an SQL command. The affected code constructs an SQL query by conc...
Vulnerable Range:
0 -> 1.40.0
Fix Version:
1.40.0
SQL injection in litellm
A blind SQL injection vulnerability exists in the berriai/litellm application, specifically within the '/team/update' process. The vulnerability arises due to the improper handling of the 'user_id' parameter in the raw SQL query used for deleting users. An attacker can exploit...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
Arbitrary file deletion in litellm
BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on the `/audio/transcriptions` endpoint. An attacker can exploit this vulnerability by sending a specially crafted request that includes a file path to the serve...
Vulnerable Range:
0 -> 1.35.36
Fix Version:
1.35.36
litellm passes untrusted data to `eval` function without sanitization
A remote code execution (RCE) vulnerability exists in the berriai/litellm project due to improper control of the generation of code when using the `eval` function unsafely in the `litellm.get_secret()` method. Specifically, when the server utilizes Google KMS, untrusted data i...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
### Impact
A Host-header parsing flaw in the LiteLLM proxy could, under specific conditions, allow unauthenticated access to protected management routes.
The auth layer derived the effective route from `request.url.path` in `litellm/proxy/auth/auth_utils.py::get_request_rou...
Vulnerable Range:
0 -> 1.84.0
LiteLLM: Authentication bypass via OIDC userinfo cache key collision
### Impact
When JWT authentication is enabled (`enable_jwt_auth: true`), the OIDC userinfo cache uses `token[:20]` as the cache key. JWT headers produced by the same signing algorithm generate identical first 20 characters.
This configuration option is not enabled by defaul...
Vulnerable Range:
0 -> 1.83.0
Fix Version:
1.83.0
LiteLLM has SQL Injection in Proxy API key verification
### Impact
A database query used during proxy API key checks mixed the caller-supplied key value into the query text instead of passing it as a separate parameter. An unauthenticated attacker could send a specially crafted `Authorization` header to any LLM API route (for exam...
Vulnerable Range:
1.81.16 -> 1.83.7
Fix Version:
1.83.7
litellm vulnerable to remote code execution based on using eval unsafely
BerriAI/litellm version v1.35.8 contains a vulnerability where an attacker can achieve remote code execution. The vulnerability exists in the `add_deployment` function, which decodes and decrypts environment variables from base64 and assigns them to `os.environ`. An attacker c...
Vulnerable Range:
0 -> 1.40.16
Fix Version:
1.40.16
LiteLLM has Server-Side Template Injection vulnerability in /completions endpoint
BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. The vulnerability arises from the `hf_chat_template` method processing the `chat_template` parameter from the `tokenizer_config.json` file through the Jinja template engine ...
Vulnerable Range:
0 -> 1.34.42
Fix Version:
1.34.42
BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader
A weakness has been identified in BerriAI litellm up to 1.82.2. Affected by this vulnerability is the function load_openapi_spec_async of the file litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py of the component MCP OpenAPI Spec Loader. This manipulation of ...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
BerriAI litellm: UI User Enumeration leads to System-Wide Information Disclosure
A security vulnerability has been detected in BerriAI litellm up to 1.82.2. Affected by this issue is the function ui_view_users of the file litellm/proxy/management_endpoints/internal_user_endpoints.py of the component Incomplete Fix CVE-2025-0628. Such manipulation leads to ...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
BerriAI litellm has Security Feature Bypass in BannedKeywords and AzureContentSafety Guardrails via call_type Mismatch on Async Endpoints
A security flaw has been discovered in BerriAI litellm up to 1.82.5. Affected is the function async_pre_call_hook of the file enterprise/enterprise_hooks/banned_keywords.py of the component Completions Interface. The manipulation of the argument prompt results in incorrect aut...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
BerriAI litellm: SSO Login Does Not Invalidate Previous UI Session Tokens
A vulnerability was identified in BerriAI litellm up to 1.82.2. This impacts the function get_redirect_response_from_openid of the file litellm/proxy/management_endpoints/ui_sso.py of the component SSO Authentication Flow. The manipulation leads to session expiration. The atta...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
LiteLLM: SSO Debug Flow Has Improper Authentication
A vulnerability was determined in BerriAI litellm up to 1.82.2. This affects the function json.dumps of the file litellm/proxy/management_endpoints/ui_sso.py of the component SSO Debug Flow. Executing a manipulation can lead to missing authentication. The attack can be execute...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
A weakness has been identified in BerriAI litellm up to 1.59.8. Affected is the function UserAPIKeyAuth of the file litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py of the component MCP Proxy. Executing a manipulation can lead to improper authentication. Th...
Vulnerable Range:
0 -> 1.84.0
LiteLLM: Admin Key Handler Has Improper Authorization
A vulnerability was determined in BerriAI litellm up to 1.63.1. The impacted element is an unknown function of the file litellm/proxy/management_endpoints/key_management_endpoints.py of the component Admin Key Handler. This manipulation causes improper authorization. The attac...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
LiteLLM: PROXY_ADMIN database API Key Generator Has Insufficient Session Expiration
A security flaw has been discovered in BerriAI litellm up to 1.82.2. This impacts the function authenticate_user of the file litellm/proxy/auth/login_utils.py of the component PROXY_ADMIN database API Key Generator. Performing a manipulation results in session expiration. The ...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
LiteLLM: M2M JWT Handler Has Improper Authorization
A vulnerability was identified in BerriAI litellm up to 1.82.2. This affects an unknown function of the file litellm/proxy/auth/user_api_key_auth.py of the component M2M JWT Handler. Such manipulation leads to improper authorization. The attack can be launched remotely. A high...
Vulnerable Range:
0 -> unfixed
Fix Version:
Review Advisory
### Impact
A Host-header parsing flaw in the LiteLLM proxy could, under specific conditions, allow unauthenticated access to protected management routes.
The auth layer derived the effective route from `request.url.path` in `litellm/proxy/auth/auth_utils.py::get_request_rout...
Vulnerable Range:
0 -> 1.84.0
LiteLLM allows a user to modify their own user_role via the /user/update endpoint
LiteLLM prior to 1.83.10 allows a user to modify their own user_role via the /user/update endpoint. While the endpoint correctly restricts users to updating only their own account, it does not restrict which fields may be changed. A user who can reach this endpoint can set the...
Vulnerable Range:
0 -> 1.83.10
Fix Version:
1.83.10