CVE-2025-25183
vLLM uses Python 3.12 built-in hash() which leads to predictable hash collisions in prefix cache
描述
vLLM is a high-throughput and memory-efficient inference and serving engine for LLMs. Maliciously constructed statements can lead to hash collisions, resulting in cache reuse, which can interfere with subsequent responses and cause unintended behavior. Prefix caching makes use of Python's built-in hash() function. As of Python 3.12, the behavior of hash(None) has changed to be a predictable constant value. This makes it more feasible that someone could try exploit hash collisions. The impact of a collision would be using cache that was generated using different content. Given knowledge of prompts in use and predictable hashing behavior, someone could intentionally populate the cache using a prompt known to collide with another prompt in use. This issue has been addressed in version 0.7.2 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
如何修補 CVE-2025-25183
要修補 CVE-2025-25183,請將受影響套件升級到下列已修補版本。
- —升級至 0.7.2 或更新版本
- —升級至 432117cd1f59c76d97da2eaff55a7d758301dbc7 或更新版本
CVE-2025-25183 正在被利用嗎?
低 — EPSS 為 0.2%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- from 0, < 0.7.2
- from 0, < 432117cd1f59c76d97da2eaff55a7d758301dbc7 | from 0, < 0.7.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | LOW2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N |