vLLM has a Weakness in MultiModalHasher Image Hashing Implementation
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vllmPyPI | >= 0.7.0, < 0.9.0 | 0.9.0 |
Affected products
6- osv-coords5 versionspkg:apk/chainguard/py3.10-vllm-cuda-11.8pkg:apk/chainguard/py3.10-vllm-cuda-12.6pkg:apk/chainguard/py3.10-wheels-vllm-cuda-11.8pkg:apk/chainguard/tritonserver-backend-vllm-24.04pkg:pypi/vllm
< 0.9.0-r0+ 4 more
- (no CPE)range: < 0.9.0-r0
- (no CPE)range: < 0.9.0.1-r0
- (no CPE)range: < 0.9.0-r0
- (no CPE)range: < 24.04-r10
- (no CPE)range: >= 0.7.0, < 0.9.0
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-c65p-x677-fgj6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-46722ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2025-43.yamlghsaWEB
- github.com/vllm-project/vllm/commit/99404f53c72965b41558aceb1bc2380875f5d848ghsax_refsource_MISCWEB
- github.com/vllm-project/vllm/pull/17378ghsax_refsource_MISCWEB
- github.com/vllm-project/vllm/security/advisories/GHSA-c65p-x677-fgj6ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.