2.6low
vLLM’s Chunk-Based Prefix Caching Vulnerable to Potential Timing Side-Channel
- Severity
- 2.6low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.44% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4qjh-9fv9-r85rPYSEC-2025-53
Description
vLLM is an inference and serving engine for large language models (LLMs). Prior to version 0.9.0, when a new prompt is processed, if the PageAttention mechanism finds a matching prefix chunk, the prefill process speeds up, which is reflected in the TTFT (Time to First Token). These timing differences caused by matching chunks are significant enough to be recognized and exploited. This issue has been patched in version 0.9.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| vllm-project vllm | < 0.9.0 | CVE List |
| vllm (PyPI) | before 0.9.0, before 77073c77bc2006eb80ea6d5128f076f5e6c6f54f | GitHub Advisory Database, PyPA Advisory Database |
| vllm vllm | before 0.9.0 | NVD |
All scores
| GitHub_M | 2.6low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N |
| GitHub | 2.6low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N |
Classification
What each source says
CVE List
vLLM is an inference and serving engine for large language models (LLMs). Prior to version 0.9.0, when a new prompt is processed, if the PageAttention mechanism finds a matching prefix chunk, the prefill process speeds up, which is reflected in the TTFT (Time to First Token). These timing differences caused by matching chunks are significant enough to be recognized and exploited. This issue has been patched in version 0.9.0.
GitHub Advisory Database
This issue arises from the prefix caching mechanism, which may expose the system to a timing side-channel attack.
Description
When a new prompt is processed, if the PageAttention mechanism finds a matching prefix chunk, the prefill process speeds up, which is reflected in the TTFT (Time to First Token). Our tests revealed that the timing differences caused by matching chunks are significant enough to be recognized and exploited.
For instance, if the victim has submitted a sensitive prompt or if a valuable system prompt has been cached, an attacker sharing the same backend could attempt to guess the victim's input. By measuring the TTFT based on prefix matches, the attacker could verify if their guess is correct, leading to potential leakage of private information.
Unlike token-by-token sharing mechanisms, vLLM’s chunk-based approach (PageAttention) processes tokens in larger units (chunks). In our tests, with chunk_size=2, the timing differences became noticeable enough to allow attackers to infer whether portions of their input match the victim's prompt at the chunk level.
Environment
- GPU: NVIDIA A100 (40G)
- CUDA: 11.8
- PyTorch: 2.3.1
- OS: Ubuntu 18.04
- vLLM: v0.5.1 Configuration: We launched vLLM using the default settings and adjusted chunk_size=2 to evaluate the TTFT.
Leakage
We conducted our tests using LLaMA2-70B-GPTQ on a single device. We analyzed the timing differences when prompts shared prefixes of 2 chunks, and plotted the corresponding ROC curves. Our results suggest that timing differences can be reliably used to distinguish prefix matches, demonstrating a potential side-channel vulnerability. roc_curves_combined_block_2
Results
In our experiment, we analyzed the response time differences between cache hits and misses in vLLM's PageAttention mechanism. Using ROC curve analysis to assess the distinguishability of these timing differences, we observed the following results:
- With a 1-token prefix, the ROC curve yielded an AUC value of 0.571, indicating that even with a short prefix, an attacker can reasonably distinguish between cache hits and misses based on response times.
- When the prefix length increases to 8 tokens, the AUC value rises significantly to 0.99, showing that the attacker can almost perfectly identify cache hits with a longer prefix.
Fixes
NVD (es)
vLLM es un motor de inferencia y entrega para modelos de lenguaje grandes (LLM). Antes de la versión 0.9.0, al procesar una nueva solicitud, si el mecanismo PageAttention encuentra un fragmento de prefijo coincidente, el proceso de precompletado se acelera, lo que se refleja en el TTFT (Tiempo hasta el Primer Token). Estas diferencias de tiempo causadas por la coincidencia de fragmentos son lo suficientemente significativas como para ser detectadas y explotadas. Este problema se ha corregido en la versión 0.9.0.
References
| https://github.com/vllm-project/vllm/security/advisories/GHSA-4qjh-9fv9-r85r | advisory, vendor-advisory, web | |
| https://github.com/vllm-project/vllm/pull/17045 | issue-tracking, report, vendor-advisory, web | |
| https://github.com/vllm-project/vllm/commit/77073c77bc2006eb80ea6d5128f076f5e6c6f54f | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-46570 | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2025-53.yaml | web | |
| https://github.com/vllm-project/vllm | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-46570 changed 2025-05-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4qjh-9fv9-r85r changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2025-46570 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2025-53 changed 2025-06-26 | CC-BY-4.0 |