CVE-2025-59425: vLLM is vulnerable to timing attack at bearer auth
vLLM before 0.11.0 checks its built-in bearer API key with a string comparison that takes longer the more leading characters match. An attacker can measure response times to recover a valid key faster than brute force. Upgrade to vllm 0.11.0.
Published Oct 7, 2025 · Updated Jul 17, 2026 · Analysis Nov 17, 2026
What an attacker can do
In vllm/entrypoints/openai/api_server.py, the API key check used a plain comparison. A comparison like that stops at the first wrong character, so a guess with more correct leading characters takes slightly longer to reject. By sending many requests and analysing the timing, an attacker finds each next character of the key in turn. This is far cheaper than guessing the whole key at once.
The attacker needs network access to the OpenAI-compatible server and a good timing signal. Noisy networks make it harder, and rate limits or a proxy in front reduce the signal. A recovered key gives the same access as the owner of the key: use of the model endpoints, compute and any data sent through them. The advisory says deployments that rely on vLLM's built-in API key validation are open to authentication bypass this way. The CVSS vector marks confidentiality high with no privileges or user interaction needed.
Who is affected
pip package vllm before 0.11.0, when you start the server with the --api-key option and depend on it for access control. Servers without an API key have no authentication at all, which is a separate matter.
pip show vllmIn a container, check the image tag or run the same command inside it.
vllm
- Ecosystem
- PyPI
- Affected
- < 0.11.0
- Fixed in
- 0.11.0
- Check
pip show vllm
How to fix it
Upgrade to vllm 0.11.0:
pip install -U "vllm>=0.11.0"The fix is commit ee10d7e. The advisory lists no workaround. As interim steps (not from the advisory), put a reverse proxy with its own authentication and rate limiting in front of vLLM, do not expose the port to untrusted networks, and rotate the API key after upgrading.
How to tell if you were hit
Look in access logs for a large number of 401 responses against the API from a single address, especially in a steady rhythm with slightly varying bearer tokens. Requests with many near-identical Authorization values are a sign of timing probing. Check for key use from addresses outside your normal clients, and rotate the key if you see this.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The API key support in vLLM performed validation using a method that was vulnerable to a timing attack. This could potentially allow an attacker to discover a valid API key using an approach more efficient than brute force.
Details
https://github.com/vllm-project/vllm/blob/4b946d693e0af15740e9ca9c0e059d5f333b1083/vllm/entrypoints/openai/api_server.py#L1270-L1274
API key validation used a string comparison that will take longer the more characters the provided API key gets correct. Data analysis across many attempts can allow an attacker to determine when it finds the next correct character in the key sequence.
Impact
Deployments relying on vLLM's built-in API key validation are vulnerable to authentication bypass using this technique.
Credited to NiuBlibing, russellb.
Questions
- Is vLLM 0.10.x affected by CVE-2025-59425?
Yes. Every release before 0.11.0 is affected when you rely on the built-in API key check.
- Does a timing attack work over the internet?
It needs many requests and statistical analysis. It is harder over noisy networks, but the advisory treats it as a real way to discover a key more efficiently than brute force.
- Which version fixes it?
vllm 0.11.0, which changes how the API key is compared.
References
Read for this analysis:
- https://github.com/vllm-project/vllm/security/advisories/GHSA-wr9h-g72x-mwhm
- https://github.com/vllm-project/vllm/releases/tag/v0.11.0
- https://nvd.nist.gov/vuln/detail/CVE-2025-59425
- https://github.com/vllm-project/vllm/commit/ee10d7e6ff5875386c7f136ce8b5f525c8fcef48
- https://github.com/vllm-project/vllm/blob/4b946d693e0af15740e9ca9c0e059d5f333b1083/vllm/entrypoints/openai/api_server.py#L1270-L1274
- https://github.com/advisories/GHSA-wr9h-g72x-mwhm
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2026-2026.yaml
- https://github.com/vllm-project/vllm
- https://pypi.org/project/vllm
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
