CVE-2025-25183 vLLM using built-in hash() from Python 3.12 leads to predictable hash collisions in vLLM prefix cache
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
4 packages: 2 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cbl-mariner python3(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| pypi vllm(PyPI) | < 0.7.2; = 0.0.1; = 0.1.0; = 0.1.1 +46 more | 0.7.2 | Fixed |
| vllm | < 0.7.2 | 0.7.2 | Fixed |
| vllm-project vllm | = < 0.7.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi vllm(PyPI) | < 0.7.2 | 0.7.2 |
| pypi vllm(PyPI) | = 0.0.1 | No fix listed |
| pypi vllm(PyPI) | = 0.1.0 | No fix listed |
| pypi vllm(PyPI) | = 0.1.1 | No fix listed |
| pypi vllm(PyPI) | = 0.1.2 | No fix listed |
| pypi vllm(PyPI) | = 0.1.3 | No fix listed |
| pypi vllm(PyPI) | = 0.1.4 | No fix listed |
| pypi vllm(PyPI) | = 0.1.5 | No fix listed |
| pypi vllm(PyPI) | = 0.1.6 | No fix listed |
| pypi vllm(PyPI) | = 0.1.7 | No fix listed |
| pypi vllm(PyPI) | = 0.2.0 | No fix listed |
| pypi vllm(PyPI) | = 0.2.1 | No fix listed |
| pypi vllm(PyPI) | = 0.2.1.post1 | No fix listed |
| pypi vllm(PyPI) | = 0.2.2 | No fix listed |
| pypi vllm(PyPI) | = 0.2.3 | No fix listed |
| pypi vllm(PyPI) | = 0.2.4 | No fix listed |
| pypi vllm(PyPI) | = 0.2.5 | No fix listed |
| pypi vllm(PyPI) | = 0.2.6 | No fix listed |
| pypi vllm(PyPI) | = 0.2.7 | No fix listed |
| pypi vllm(PyPI) | = 0.3.0 | No fix listed |
| pypi vllm(PyPI) | = 0.3.1 | No fix listed |
| pypi vllm(PyPI) | = 0.3.2 | No fix listed |
| pypi vllm(PyPI) | = 0.3.3 | No fix listed |
| pypi vllm(PyPI) | = 0.4.0 | No fix listed |
| pypi vllm(PyPI) | = 0.4.0.post1 | No fix listed |
Show 28 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi vllm(PyPI) | = 0.4.1 | No fix listed |
| pypi vllm(PyPI) | = 0.4.2 | No fix listed |
| pypi vllm(PyPI) | = 0.4.3 | No fix listed |
| pypi vllm(PyPI) | = 0.5.0 | No fix listed |
| pypi vllm(PyPI) | = 0.5.0.post1 | No fix listed |
| pypi vllm(PyPI) | = 0.5.1 | No fix listed |
| pypi vllm(PyPI) | = 0.5.2 | No fix listed |
| pypi vllm(PyPI) | = 0.5.3 | No fix listed |
| pypi vllm(PyPI) | = 0.5.3.post1 | No fix listed |
| pypi vllm(PyPI) | = 0.5.4 | No fix listed |
| pypi vllm(PyPI) | = 0.5.5 | No fix listed |
| pypi vllm(PyPI) | = 0.6.0 | No fix listed |
| pypi vllm(PyPI) | = 0.6.1 | No fix listed |
| pypi vllm(PyPI) | = 0.6.1.post1 | No fix listed |
| pypi vllm(PyPI) | = 0.6.1.post2 | No fix listed |
| pypi vllm(PyPI) | = 0.6.2 | No fix listed |
| pypi vllm(PyPI) | = 0.6.3 | No fix listed |
| pypi vllm(PyPI) | = 0.6.3.post1 | No fix listed |
| pypi vllm(PyPI) | = 0.6.4 | No fix listed |
| pypi vllm(PyPI) | = 0.6.4.post1 | No fix listed |
| pypi vllm(PyPI) | = 0.6.5 | No fix listed |
| pypi vllm(PyPI) | = 0.6.6 | No fix listed |
| pypi vllm(PyPI) | = 0.6.6.post1 | No fix listed |
| pypi vllm(PyPI) | = 0.7.0 | No fix listed |
| pypi vllm(PyPI) | = 0.7.1 | No fix listed |
| cbl-mariner python3(CBL-Mariner:2.0) | All versions | No fix listed |
| vllm-project vllm | = < 0.7.2 | No fix listed |
| vllm | < 0.7.2 | 0.7.2 |
References
- https://github.com/vllm-project/vllm/security/advisories/GHSA-rm76-4mrf-v9r8 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- https://github.com/vllm-project/vllm/pull/12621 issue-tracking patch
- https://github.com/python/cpython/commit/432117cd1f59c76d97da2eaff55a7d758301dbc7 not-applicable patch
- github.com patch
- github.com
- github.com product
- MSRC Security Update Guide vendor-advisory
- github.com