Skip to content

huntr

BerriAI/litellm

Every publicly disclosed report for BerriAI/litellm and what kind of bugs they were.

disclosed reports
14
most reported class
RCE
bug classes found
7
first disclosure
2024
Find BerriAI/litellm on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what BerriAI/litellm chose to make public.

Access control

LiteLLM Has an Improper Authorization Vulnerability

A user with the 'internal_user_viewer' role receives an API key that grants access to admin-only endpoints such as '/users/list' and '/users/get_users'. This allows any such account to escalate privileges to PROXY ADMIN.

BerriAI/litellm

High
Info disclosure

LiteLLM Reveals Portion of API Key via a Logging File

The logging code in LiteLLM only masked the first five characters of an API key, so almost the whole secret was written to log files. Anyone able to read those logs could recover the key and use it to access the upstream model provider.

BerriAI/litellm

High
DoS

LiteLLM Vulnerable to Denial of Service (DoS) via Crafted HTTP Request

A denial-of-service flaw in LiteLLM v1.44.5 allows an unauthenticated attacker to append extra characters to a multipart boundary in an HTTP request, causing the server to process each character and exhaust resources, making the service unavailable.

BerriAI/litellm

High
RCE

LiteLLM Vulnerable to Remote Code Execution (RCE)

The post_call_rules configuration in LiteLLM allowed a callback function to be set to a system method such as os.system, which would then be executed when a chat response was processed. An attacker could therefore run arbitrary commands on the server.

BerriAI/litellm

High
DoS

LiteLLM Vulnerable to Denial of Service (DoS)

The LiteLLM server uses ast.literal_eval to parse user-supplied input, which is unsafe and can be exploited to cause a denial of service. An unauthenticated attacker could crash the Python server.

BerriAI/litellm

High
SSRF

LiteLLM Server-Side Request Forgery (SSRF) vulnerability

The LiteLLM server accepted a user-supplied api_base parameter on chat completion requests and forwarded the request, including the OpenAI API key, to that domain. A malicious user could point api_base at their own server and capture the API key.

BerriAI/litellm

High
RCE

litellm vulnerable to remote code execution based on using eval unsafely

The add_deployment function decodes and decrypts environment variables from base64 and assigns them to os.environ, and an attacker can send a malicious payload to the /config/update endpoint that is later executed when get_secret is triggered. This allows remote code execution if the server uses Google KMS and a database to store a model.

BerriAI/litellm

Critical
Access control

litellm vulnerable to improper access control in team management

The team management endpoints in litellm lacked proper access control checks, allowing an attacker to perform any team management action without authorisation. This includes creating, updating, viewing, deleting, blocking, and unblocking teams, as well as adding or removing members.

BerriAI/litellm

Medium
SQL injection

SQL injection in litellm

The `/global/spend/logs` endpoint in litellm builds an SQL query by concatenating an unvalidated `api_key` parameter, allowing SQL injection. An attacker could exploit this to gain unauthorised access, manipulate data, expose confidential information, or cause denial of service.

BerriAI/litellm

Medium
SQL injection

SQL injection in litellm

The '/team/update' endpoint in litellm builds a raw SQL query for deleting users without properly handling the 'user_id' parameter, allowing blind SQL injection. An attacker could use this to read sensitive data such as API keys, user information and tokens from the database.

BerriAI/litellm

Medium
Path traversal

Arbitrary file deletion in litellm

The `/audio/transcriptions` endpoint in litellm deletes a file named by the request without validating the path. An attacker could delete arbitrary files on the server, such as SSH keys, databases, or configuration files.

BerriAI/litellm

High
RCE

litellm passes untrusted data to `eval` function without sanitization

The litellm.get_secret() method passes untrusted data to the eval function without sanitisation when Google KMS is used. An attacker could inject malicious values into environment variables via the /config/update endpoint, potentially leading to remote code execution.

BerriAI/litellm

High