PyPA Advisory Database
PYSEC-2026-2025
vLLM Denial of Service via the best_of parameter
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | vllm | All versions up to and including 0.5.0.post1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8939
- https://github.com/vllm-project/vllm/issues/6137
- https://access.redhat.com/security/cve/CVE-2024-8939
- https://bugzilla.redhat.com/show_bug.cgi?id=2312782
- https://github.com/vllm-project/vllm
- https://pypi.org/project/vllm
- https://github.com/advisories/GHSA-wc36-9694-f9rf