Advisory

PYSEC-2025-62

Also known as: CVE-2025-25183, GHSA-rm76-4mrf-v9r8

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-02-07 20:15 UTC
Modified
2025-07-01 23:59 UTC

Affected packages and fixes

vllm

PyPI · All systems

Affected

  • introduced 0, fixed 0.7.2 (ecosystem)

Fixed versions

0.7.2

Fix

  • Fixed version 0.7.2
    pip install --upgrade vllm==0.7.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences