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

CVE-2024-8984: LiteLLM Vulnerable to Denial of Service (DoS) via Crafted HTTP Request

highCVSS 3.0 7.5GHSA-fh2c-86xm-pm2x

LiteLLM, the Python LLM proxy, can be made unavailable by an unauthenticated HTTP request whose multipart boundary has many extra characters, such as dashes, appended. The server spends its time processing each one. Versions before 1.56.2 are affected. Upgrade to 1.56.2.

Published Mar 20, 2025 · Updated Oct 15, 2025 · Analysis Nov 1, 2026

What an attacker can do

The report was filed against berriai/litellm v1.44.5. An attacker sends an HTTP request with a multipart boundary padded with a long run of characters like -. The server processes the boundary character by character, uses excessive CPU and stops serving other requests. The CVSS vector has no privileges and no user interaction, and it affects availability only.

The LiteLLM proxy is often the single gateway that routes every model call for a team: coding agents, internal apps and CI jobs all go through it. If the proxy is reachable from an untrusted network, one crafted request can take all of those down at once. Unauthenticated means the attacker needs no virtual key. It does not give access to API keys, prompts or data, and it does not run code.

Who is affected

The litellm PyPI package before 1.56.2. This matters mainly for the LiteLLM proxy server that accepts HTTP requests; a library-only use inside a script that receives no outside requests is not exposed to this route.

Check the installed version:

pip show litellm

If you run the proxy from a container, check the image tag against the same version number.

litellm

Ecosystem
PyPI
Affected
< 1.56.2
Fixed in
1.56.2
Check
pip show litellm

How to fix it

Upgrade to litellm 1.56.2.

pip install -U "litellm>=1.56.2"

The linked fix commit is a dependency bump described as a security fix for Snyk findings, touching pyproject.toml, poetry.lock and requirements.txt. The page does not show the diff, so the exact dependency change is not confirmed here, but the multipart parsing library is the likely target. No workaround is named in the sources. Until you upgrade, keep the proxy off the open internet and put a reverse proxy with request size and time limits in front.

How to tell if you were hit

Look for the LiteLLM proxy process pinned at high CPU and requests timing out, with no matching rise in real model traffic. In reverse proxy or access logs, look for POST requests with an unusually long Content-Type header, or a boundary made mostly of dashes, from one source. Health checks failing while the host is otherwise idle is another sign.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to ishaan-jaff.

Questions

Does CVE-2024-8984 need an API key?

No. The description says it is unauthenticated and needs no user interaction. Anyone who can reach the proxy over the network can send the request.

Which LiteLLM version fixes CVE-2024-8984?

1.56.2. Anything earlier is listed as vulnerable. The report itself was made against v1.44.5.

Can this leak my provider API keys?

Not according to the sources. The impact is availability only: resource exhaustion and a service that stops responding.

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