Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:pypi/litellm@0.5.2
purl pkg:pypi/litellm@0.5.2
Next non-vulnerable version 1.83.7
Latest non-vulnerable version 1.83.10
Risk
Vulnerabilities affecting this package (16)
Vulnerability Summary Fixed by
VCID-3p23-6qnd-93fz
Aliases:
CVE-2024-2952
GHSA-46cm-pfwv-cgf8
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 without proper sanitization. Attackers can exploit this by crafting malicious `tokenizer_config.json` files that execute arbitrary code on the server.
1.34.3
Affected by 13 other vulnerabilities.
1.34.42
Affected by 13 other vulnerabilities.
VCID-4wtj-33ja-dbhu
Aliases:
CVE-2024-10188
GHSA-gw2q-qw9j-rgv7
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 server.
1.53.1.dev1
Affected by 5 other vulnerabilities.
VCID-6hj2-dcj5-pfet
Aliases:
CVE-2024-5710
GHSA-qqcv-vg9f-5rr3
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 adding or deleting any member to or from any teams. The vulnerability stems from insufficient access control checks in various team management endpoints, enabling attackers to exploit these functionalities without proper authorization.
1.40.15
Affected by 11 other vulnerabilities.
VCID-7zuw-e9wz-ekej
Aliases:
CVE-2024-4264
GHSA-7ggm-4rjg-594w
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 is passed to the `eval` function without any sanitization. Attackers can exploit this vulnerability by injecting malicious values into environment variables through the `/config/update` endpoint, which allows for the update of settings in `proxy_server_config.yaml`.
1.28.13
Affected by 14 other vulnerabilities.
VCID-8w8k-9sxr-dyd7
Aliases:
CVE-2026-35030
GHSA-jjhc-v7c2-5hh6
litellm: LiteLLM: Authentication bypass and privilege escalation via OIDC userinfo cache key collision
1.83.0
Affected by 3 other vulnerabilities.
VCID-9318-6tg8-zqbp
Aliases:
CVE-2025-0628
GHSA-fjcf-3j3r-78rp
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 functionality of the application, including endpoints such as '/users/list' and '/users/get_users'. This vulnerability allows for privilege escalation within the application, enabling any account to become a PROXY ADMIN.
1.61.15
Affected by 3 other vulnerabilities.
VCID-9vx2-e7qb-jydd
Aliases:
CVE-2024-8984
GHSA-fh2c-86xm-pm2x
LiteLLM Vulnerable to Denial of Service (DoS) via Crafted HTTP Request 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.
1.56.2
Affected by 4 other vulnerabilities.
VCID-da6b-spaz-tkd7
Aliases:
CVE-2026-35029
GHSA-53mr-6c8q-9789
litellm: LiteLLM: Remote code execution and privilege escalation via unrestricted proxy configuration endpoint
1.83.0
Affected by 3 other vulnerabilities.
VCID-fqy5-pdqv-hybv
Aliases:
CVE-2024-9606
GHSA-g5pg-73fc-hjwq
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, exposing a significant amount of the secret key. The issue affects version v1.44.9.
1.44.12
Affected by 7 other vulnerabilities.
VCID-jzjt-yfg2-nkfj
Aliases:
CVE-2024-4890
GHSA-8j42-pcfm-3467
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 this vulnerability by injecting malicious SQL commands through the 'user_id' parameter, leading to potential unauthorized access to sensitive information such as API keys, user information, and tokens stored in the database. The affected version is 1.27.14.
1.27.15
Affected by 15 other vulnerabilities.
VCID-mc83-umjs-87gb
Aliases:
CVE-2024-5225
GHSA-h6m6-jj8v-94jj
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 concatenating an unvalidated `api_key` parameter directly into the query, making it susceptible to SQL Injection if the `api_key` contains malicious data. This issue affects the latest version of the repository. Successful exploitation of this vulnerability could lead to unauthorized access, data manipulation, exposure of confidential information, and denial of service (DoS).
1.40.0
Affected by 11 other vulnerabilities.
VCID-pt79-xx8w-mbgp
Aliases:
CVE-2025-0330
GHSA-879v-fggm-vxw2
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 access to the Langfuse project storing all requests.
1.52.2
Affected by 6 other vulnerabilities.
VCID-tzme-3f3j-rfab
Aliases:
CVE-2024-5751
GHSA-gppg-gqw8-wh9g
litellm vulnerable to remote code exection base 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 can exploit this by sending a malicious payload to the `/config/update` endpoint, which is then processed and executed by the server when the `get_secret` function is triggered. This requires the server to use Google KMS and a database to store a model.
1.40.16
Affected by 10 other vulnerabilities.
VCID-x7jx-uxcq-p3ds
Aliases:
CVE-2024-4888
GHSA-3xr8-qfvj-9p9j
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 server, which then deletes the specified file without proper authorization or validation. This vulnerability is present in the code where `os.remove(file.filename)` is used to delete a file, allowing any user to delete critical files on the server such as SSH keys, SQLite databases, or configuration files.
1.35.36
Affected by 12 other vulnerabilities.
VCID-xjfb-y3du-3bgg
Aliases:
GHSA-69x8-hrgq-fjj8
LiteLLM: Password hash exposure and pass-the-hash authentication bypass ### Impact Three issues combine into a full authentication bypass chain: 1. Weak hashing: User passwords are stored as unsalted SHA-256 hashes, making them vulnerable to rainbow table attacks and trivially identifying users with identical passwords. 2. Hash exposure: Multiple API endpoints (/user/info, /user/update, /spend/users) return the password hash field in responses to any authenticated user regardless of role. Plaintext passwords could also potentially be exposed in certain scenarios. 4. Pass-the-hash: The /v2/login endpoint accepts the raw SHA-256 hash as a valid password without re-hashing, allowing direct login with a stolen An already authenticated user can retrieve another user's password hash from the API and use it to log in as that user. This enables full privilege escalation in three HTTP requests. ### Patches Fixed in v1.83.0. Passwords are now hashed with scrypt (random 16-byte salt, n=16384, r=8, p=1). Password hashes are stripped from all API responses. Existing SHA-256 hashes are transparently migrated on next login.
1.83.0
Affected by 3 other vulnerabilities.
VCID-zyw2-bncm-xyaq
Aliases:
CVE-2024-6587
GHSA-g26j-5385-hhw3
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 specified by `api_base`. This request includes the OpenAI API key. A malicious user can set the `api_base` to their own domain and intercept the OpenAI API key, leading to unauthorized access and potential misuse of the API key.
1.44.8
Affected by 8 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-06T07:50:31.865661+00:00 GitLab Importer Affected by VCID-xjfb-y3du-3bgg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/GHSA-69x8-hrgq-fjj8.yml 38.6.0
2026-06-06T07:44:18.525325+00:00 GitLab Importer Affected by VCID-da6b-spaz-tkd7 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2026-35029.yml 38.6.0
2026-06-06T07:43:58.610566+00:00 GitLab Importer Affected by VCID-8w8k-9sxr-dyd7 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2026-35030.yml 38.6.0
2026-06-06T05:44:13.175554+00:00 GitLab Importer Affected by VCID-9vx2-e7qb-jydd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-8984.yml 38.6.0
2026-06-06T05:44:01.311471+00:00 GitLab Importer Affected by VCID-pt79-xx8w-mbgp https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2025-0330.yml 38.6.0
2026-06-06T05:43:38.701400+00:00 GitLab Importer Affected by VCID-fqy5-pdqv-hybv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-9606.yml 38.6.0
2026-06-06T05:43:27.716343+00:00 GitLab Importer Affected by VCID-9318-6tg8-zqbp https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2025-0628.yml 38.6.0
2026-06-06T05:42:43.274805+00:00 GitLab Importer Affected by VCID-4wtj-33ja-dbhu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-10188.yml 38.6.0
2026-06-06T05:22:09.053872+00:00 GitLab Importer Affected by VCID-zyw2-bncm-xyaq https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-6587.yml 38.6.0
2026-06-06T05:09:41.562842+00:00 GitLab Importer Affected by VCID-6hj2-dcj5-pfet https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-5710.yml 38.6.0
2026-06-06T05:09:37.209604+00:00 GitLab Importer Affected by VCID-tzme-3f3j-rfab https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-5751.yml 38.6.0
2026-06-06T05:04:44.533687+00:00 GitLab Importer Affected by VCID-jzjt-yfg2-nkfj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-4890.yml 38.6.0
2026-06-06T05:04:40.282274+00:00 GitLab Importer Affected by VCID-x7jx-uxcq-p3ds https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-4888.yml 38.6.0
2026-06-06T05:04:07.349495+00:00 GitLab Importer Affected by VCID-mc83-umjs-87gb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-5225.yml 38.6.0
2026-06-06T04:56:44.853295+00:00 GitLab Importer Affected by VCID-7zuw-e9wz-ekej https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-4264.yml 38.6.0
2026-06-06T04:48:35.982987+00:00 GitLab Importer Affected by VCID-3p23-6qnd-93fz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/litellm/CVE-2024-2952.yml 38.6.0