VDB
Sign up
—

PYSEC-2025-43

Quick fix

PYSEC-2025-43 — vllm: upgrade to the fixed version with the command below.

pip install --upgrade 'vllm>=99404f53c72965b41558aceb1bc2380875f5d848'

Details

vLLM is an inference and serving engine for large language models (LLMs). In versions starting from 0.7.0 to before 0.9.0, in the file vllm/multimodal/hasher.py, the MultiModalHasher class has a security and data integrity issue in its image hashing method. Currently, it serializes PIL.Image.Image objects using only obj.tobytes(), which returns only the raw pixel data, without including metadata such as the image’s shape (width, height, mode). As a result, two images of different sizes (e.g., 30x100 and 100x30) with the same pixel byte sequence could generate the same hash value. This may lead to hash collisions, incorrect cache hits, and even data leakage or security risks. This issue has been patched in version 0.9.0.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/vllm
Introduced in: 0Fixed in: 99404f53c72965b41558aceb1bc2380875f5d848
Fixpip install --upgrade 'vllm>=99404f53c72965b41558aceb1bc2380875f5d848'

References