{"id":"CVE-2025-25183","published":"2025-02-07T19:59:01Z","modified":"2025-02-12T20:51:46Z","title":"vLLM using built-in hash() from Python 3.12 leads to predictable hash collisions in vLLM prefix cache","vendor":"vllm-project","product":"vllm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00196,"percentile":0.09282,"provenance":"source"},"cwes":[{"id":"CWE-354","name":"Improper Validation of Integrity Check Value"}],"references":[{"url":"https://github.com/vllm-project/vllm/security/advisories/GHSA-rm76-4mrf-v9r8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vllm-project/vllm/pull/12621","tags":["x_refsource_MISC"]},{"url":"https://github.com/python/cpython/commit/432117cd1f59c76d97da2eaff55a7d758301dbc7","tags":["x_refsource_MISC"]}],"priority":{"score":3.7,"factors":[{"name":"EPSS percentile","points":1.86},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"vllm-project","affectedVersions":[{"vendor":"vllm-project","product":"vllm","versions":["< 0.7.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-07T20:33:57.205558Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vllm","vulnerableRanges":["<0.7.2"],"patched":["0.7.2"],"from":["GHSA-rm76-4mrf-v9r8","PYSEC-2025-62"],"provenance":"source"}],"summary":{"text":"The vllm prefix cache in the vllm-project vllm inference engine uses Python's built-in hash() function, which since Python 3.12 returns a predictable constant for hash(None), making hash collisions in prefix cache lookups feasible. An attacker with network access, low privileges, and the cooperation of a user (such as a victim submitting or triggering a prompt) can craft statements that collide with other prompts in use, causing cached content from one prompt to be reused for another and potentially producing unintended responses.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:03Z"},"euvd":{"id":"EUVD-2025-4074","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vllm-project-vllm-cve-2025-24357","children":[{"from":"CVE-2025-25183","to":"CVE-2025-46570","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["vllm/v1/core/kv_cache_utils.py"],"commits":["https://github.com/vllm-project/vllm/commit/73b35cca7f3745d07d439c197768b25d88b6ab7f","https://github.com/vllm-project/vllm/commit/77073c77bc2006eb80ea6d5128f076f5e6c6f54f"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-8768","published":"2024-09-17","fixed":"0.5.5","kev":false},{"cve":"CVE-2025-24357","published":"2025-01-27","fixed":"0.7.0","kev":false,"link":{"from":"CVE-2025-24357","to":"CVE-2025-25183","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:vllm","fromFixed":"0.7.0","toFixed":"0.7.2","daysApart":11}]}},{"cve":"CVE-2025-25183","published":"2025-02-07","fixed":"0.7.2","kev":false},{"cve":"CVE-2025-29770","published":"2025-03-19","fixed":"0.8.0","kev":false},{"cve":"CVE-2025-29783","published":"2025-03-19","fixed":"0.8.0","kev":false},{"cve":"CVE-2025-30202","published":"2025-04-30","fixed":"0.8.5","kev":false}],"package":"PyPI:vllm"}}