NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · LiteLLM

CVE-2024-10188: LiteLLM Vulnerable to Denial of Service (DoS)

highCVSS 3.0 7.5GHSA-gw2q-qw9j-rgv7

LiteLLM before 1.53.1.dev1 parsed request bodies with `ast.literal_eval`, which an unauthenticated user can abuse to crash the proxy with a crafted request. It is a denial of service only. Upgrade to 1.53.1.dev1, which parses bodies with `json.loads` alone.

Published Mar 20, 2025 · Analysis Nov 1, 2026

What an attacker can do

The proxy reads request bodies in _read_request_body in litellm/proxy/common_utils/http_parsing_utils.py. Before the fix, it first tried ast.literal_eval() and fell back to json.loads(). ast.literal_eval is not built for untrusted input. A crafted body, for example one that is deeply nested, can exhaust memory or the interpreter stack and crash the Python server.

The parsing runs on the body before authentication matters for the crash, and the CVSS vector says network, no privileges, no interaction, high availability impact (7.5). Anyone who can reach the proxy port can take it down, and every application that routes LLM calls through it loses service until it restarts. There is no confidentiality or integrity impact. A proxy exposed to the internet, or to many internal clients, is most at risk.

Who is affected

The litellm package on PyPI before 1.53.1.dev1. The advisory text names commit 26c03c9 as the state tested. It affects the proxy server, so a library-only use is less exposed. Check your version:

pip show litellm

For Docker, check the image tag.

litellm

Ecosystem
PyPI
Affected
< 1.53.1.dev1
Fixed in
1.53.1.dev1
Check
pip show litellm

How to fix it

Upgrade to litellm 1.53.1.dev1 or later.

pip install --upgrade litellm

The fix commit removes ast.literal_eval() from _read_request_body. It now uses only json.loads() and returns {} for empty or invalid bodies, logging the failure. The same commit also makes the /v1/realtime WebSocket endpoint require authentication through a user_api_key_auth_websocket dependency. The sources list no other workaround. Until you upgrade, keep the proxy behind a gateway that limits request size and exposure.

How to tell if you were hit

Look for proxy crashes or restarts with MemoryError or RecursionError tracebacks that pass through _read_request_body or ast.literal_eval. Correlate them with large or deeply nested request bodies in access logs, and with the client addresses that sent them. Repeated crash loops right after requests from one source suggest abuse.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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.

Questions

Which LiteLLM version fixes CVE-2024-10188?

1.53.1.dev1. Earlier versions are affected.

Does the attacker need an API key?

No. The CVSS vector requires no privileges. The crash comes from how the body is parsed.

Can it lead to code execution?

No source says so. The advisory describes a denial of service only.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More LiteLLM vulnerabilities

All LiteLLM entries