CVE-2024-8939: vLLM Denial of Service via the best_of parameter
vLLM 0.5.0.post1 and earlier, as served by the ilab model serve component, mishandles a large best_of value in its completions API. The request consumes excessive resources and the API stops responding. No patched version is listed, and Red Hat says no mitigation is available.
Published Sep 17, 2024 · Analysis Nov 1, 2026
What an attacker can do
The completions and chat API accepts a best_of parameter, which asks the server to generate several candidate completions and return the best one. The advisory says that when best_of is set to a large value, the API does not handle timeouts or resource exhaustion, so a request can use up system resources and leave the API unresponsive for legitimate users (CWE-400).
The attacker only needs to send requests to the API. The CVSS vector has no privileges and no user interaction. It rates the attack vector as local, so it assumes access from the same host or its network position; a vLLM server exposed to a network faces the same request path. The impact is availability only.
The linked upstream issue, vllm issue 6137, covers a related crash: n>1 or best_of>1 with speculative decoding caused a shape-mismatch error in the sampler. It was closed as not planned on 2024-11-24 with no fix or pull request on the page. That page does not describe resource exhaustion, so the two reports may not be the same defect.
Who is affected
The pip package vllm, versions up to and including 0.5.0.post1. The advisory names the ilab model serve component (InstructLab) as the way the API is exposed. Check your version:
pip show vllmvllm
- Ecosystem
- PyPI
- Affected
- <= 0.5.0.post1
- Fixed in
- No patched version yet
- Check
pip show vllm
How to fix it
No patched version is listed. Red Hat's page for the CVE says mitigation is not available or does not meet its criteria. The sources I read give no fix.
Practical controls, not from the advisory: cap best_of and n at a gateway in front of the API, set request timeouts and rate limits, and do not expose the API to untrusted clients. Upgrading to a current vLLM release is still sensible, but I could not confirm that any release fixes this.
How to tell if you were hit
Watch for requests with a very large best_of value in API access logs or request bodies, GPU memory or utilization pinned at its limit, and a growing queue of requests that never complete. Compare the time the API stopped responding to the requests logged just before.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability was found in the ilab model serve component, where improper handling of the best_of parameter in the vllm JSON web API can lead to a Denial of Service (DoS). The API used for LLM-based sentence or chat completion accepts a best_of parameter to return the best completion from several options. When this parameter is set to a large value, the API does not handle timeouts or resource exhaustion properly, allowing an attacker to cause a DoS by consuming excessive system resources. This leads to the API becoming unresponsive, preventing legitimate users from accessing the service.
Questions
- Is there a fixed vLLM version for CVE-2024-8939?
None is listed. The affected range is up to 0.5.0.post1, and Red Hat reports no available mitigation.
- Does it need authentication?
The CVSS vector sets no privileges required. If your own gateway authenticates callers, only those callers can send the request.
- Does it give an attacker data or code execution?
No. The impact is availability only, according to the advisory and its CVSS vector.
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 entriesCVE-2026-115911
vLLM: DoS via unbounded chat_template Jinja2 rendering exhausts the renderer thread pool
medium6.5Oct 28, 2026CVE-2026-115912
vLLM: Public multimodal SHM handle forgery reaches worker-side `pickle.loads()` with insecure serialization disabled
high7.5Oct 28, 2026CVE-2026-115913
vLLM: Phi-4 multimodal audio encoder materializes and retains full attention matrices: a single max-length audio OOM-crashes the vLLM engine
medium6.5Oct 28, 2026CVE-2026-115914
vLLM DeepSeek-OCR image processing vulnerable to denial of service
medium6.5Oct 28, 2026CVE-2026-115915
vLLM: Untrusted EPS inputs can trigger denial of service or Ghostscript RCE
high8.1Oct 28, 2026CVE-2026-115916
vLLM: Out-of-vocabulary prompt token id passes input validation and triggers a CUDA device-side assert (engine crash / DoS)
medium6.5Oct 28, 2026
