CVE-2024-10188: LiteLLM Vulnerable to Denial of Service (DoS)
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 litellmFor 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 litellmThe 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 entriesCVE-2026-114612
LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key
high9.9Oct 27, 2026GHSA-g5ff-637f-6q2m
LiteLLM: internal_user_viewer arbitrary local file read via `vertex_ai_credentials`
high8.1Oct 27, 2026GHSA-hhww-mrg2-969h
LiteLLM vulnerable to reflected XSS in /sso/debug/callback
medium6.8Oct 27, 2026CVE-2026-84377
LiteLLM: Authenticated SSRF and provider-credential exfiltration via unvalidated request-body routing parameters
medium6.5Sep 30, 2026CVE-2026-59823
LiteLLM Proxy has server-side request forgery via the `user_config` request parameter
medium5.3Sep 17, 2026CVE-2026-37004
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
critical9.8Aug 27, 2026
