# CVE-2025-25183: vLLM using built-in hash() from Python 3.12 leads to predictable hash collisions in vLLM prefix cache

- Severity: Low 2.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-02-06T20:00:05.000Z
- Modified: 2026-08-07T08:12:27.666Z
- Also known as: GHSA-rm76-4mrf-v9r8, PYSEC-2025-62
- Weaknesses: CWE-354
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vllm-project vllm: < 0.7.2
- vllm (PyPI): before 0.7.2; before 432117cd1f59c76d97da2eaff55a7d758301dbc7
- vllm vllm: before 0.7.2

## Every score

- GitHub_M: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N`

## References

- <https://github.com/vllm-project/vllm/security/advisories/GHSA-rm76-4mrf-v9r8> (advisory, vendor-advisory, web)
- <https://github.com/vllm-project/vllm/pull/12621> (issue-tracking, report, web)
- <https://github.com/python/cpython/commit/432117cd1f59c76d97da2eaff55a7d758301dbc7> (fix, not-applicable, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25183> (advisory)
- <https://github.com/python/cpython/pull/99541> (web)
- <https://github.com/vllm-project/vllm/commit/73b35cca7f3745d07d439c197768b25d88b6ab7f> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2025-62.yaml> (web)
- <https://github.com/vllm-project/vllm> (package)

## Sources

- CVE List: [CVE-2025-25183](https://www.cve.org/CVERecord?id=CVE-2025-25183), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-rm76-4mrf-v9r8](https://github.com/advisories/GHSA-rm76-4mrf-v9r8), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2025-25183](https://nvd.nist.gov/vuln/detail/CVE-2025-25183), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-62](https://osv.dev/vulnerability/PYSEC-2025-62), CC-BY-4.0, modified 2025-07-01

---

Page: https://cve.day/CVE-2025-25183 · Whole record: https://cve.day/CVE-2025-25183.json · Rebuilt by cve.day 2026-11-25T22:58:53.911Z
