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

CVE-2024-8768: vLLM denial of service vulnerability

highCVSS 4.0 8.7 · 3.1 7.5GHSA-w2r7-9579-27hf

A completions request with an empty prompt crashes the vLLM API server before version 0.5.5. The scheduler hits an assertion and the whole async engine dies, not just the one request. Any client that can reach the endpoint can cause the outage. Upgrade to vllm 0.5.5.

Published Sep 17, 2024 · Analysis Nov 1, 2026

What an attacker can do

In the issue, a POST /v1/completions request with prompt='' was accepted with a 200 status. The empty prompt then reached the scheduler, where assert num_new_tokens > 0 in _get_num_new_tokens (via _schedule_prefills) failed. The async engine's background task stopped and vLLM raised AsyncEngineDeadError. The server stays up but cannot serve inference until it restarts. This is a reachable assertion (CWE-617).

The attacker needs only network access to the API and one small request. No authentication or user interaction is needed by the CVSS vector, unless you put your own auth in front. The impact is availability only. Nothing is read or changed.

Any vLLM server that is reachable by untrusted callers is at risk, especially one that backs shared agents or a public endpoint. One request takes the engine down, and repeating it after each restart keeps the service down.

Who is affected

The pip package vllm, all versions below 0.5.5. The issue reporter hit it on the 0.5.4 Docker image. Check your version:

pip show vllm

The OpenAI-compatible server and the LLM entrypoints are covered by the fix's tests.

vllm

Ecosystem
PyPI
Affected
< 0.5.5
Fixed in
0.5.5
Check
pip show vllm

How to fix it

Upgrade to vllm 0.5.5 or later.

pip install --upgrade "vllm>=0.5.5"

The fix, pull request 7746, rejects empty prompts in add_request. The server then returns a 400 error with the message "Empty prompt" and the engine keeps running. No workaround is given in the sources; validating that prompts are non-empty in a gateway in front of vLLM has the same effect.

How to tell if you were hit

Look in vLLM logs for AssertionError at assert num_new_tokens > 0, a traceback through _schedule_prefills, and AsyncEngineDeadError. Check access logs for /v1/completions requests whose prompt is an empty string just before an outage, and note the client address. On patched versions, requests of this kind appear as 400 "Empty prompt" responses.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A flaw was found in the vLLM library. A completions API request with an empty prompt will crash the vLLM API server, resulting in a denial of service.

Questions

Does a single request take the server down?

In the issue, yes. One completions request with an empty prompt killed the async engine, and the server needed a restart.

Is authentication needed?

Not in vLLM. The CVSS vector sets no privileges. If you front the API with your own authentication, only authenticated callers can send the request.

Which version fixes CVE-2024-8768?

vllm 0.5.5. The 0.5.4 image was the one in the original report.

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 vLLM vulnerabilities

All vLLM entries