GitHub advisory · PyPI
vLLM: Public multimodal SHM handle forgery reaches worker-side `pickle.loads()` with insecure serialization disabled
Description
vllmWhen --mm-processor-cache-type shm is enabled, vLLM's multimodal SHM cache represents a cached item with an address and monotonic_id pair and treats that pair as authority to dereference shared memory in the worker. A public scale-out request can supply its own multimodal features.kwargs_data, so an authenticated caller can forge an inner SHM carrier that points at attacker-controlled bytes already staged in the ring buffer. The worker then reaches pickle.loads() while deserializing the forged object.
This is reachable through ordinary public HTTP routes and does not require VLLM_ALLOW_INSECURE_SERIALIZATION=1. The live chain used /v1/chat/completions/render to obtain a valid feature envelope, /v1/chat/completions to stage attacker-chosen bytes into SHM, and /inference/v1/generate to submit the forged inner carrier.
Links pinned to the confirmed commit 752a3a504485 (v0.25.1):
vllm/distributed/device_communicators/shm_object_storage.py#L375-L400 — SHM object deserialization reaches pickle.loads(serialized_data) for byte objects.vllm/multimodal/cache.py#L567-L581 — sender emits an SHM carrier containing only address and monotonic_id.vllm/multimodal/cache.py#L711-L737 — worker dereferences the untrusted pair and reads the SHM object.
-…Manual fix · PyPI
pip install --upgrade "vllm>=0.32.0"Sources