CVE-2026-105755: vLLM: Flash late-interaction scoring caches query embeddings under a caller-controlled request id — cross-request integrity break and induced errors on `/score` and `/rerank`
On vLLM late-interaction `/score` and `/rerank` deployments, flash late interaction caches query embeddings under a key built from the caller's `X-Request-Id` header. A second client who reuses a victim's header value overwrites the cached query, so the victim's documents are scored against the attacker's query. Versions before 0.30.0 are affected; upgrade to 0.30.0.
Published Oct 5, 2026 · Analysis Oct 22, 2026
What an attacker can do
_base_request_id() in vllm/entrypoints/serve/engine/serving.py takes the public X-Request-Id header as the request id. In flash_late_interaction() (vllm/entrypoints/pooling/scoring/serving.py) the worker cache keys become f"{ctx.request_id}-query-{i}". The worker (late_interaction_runner.py) stores self._query_cache[query_key] = output.clone() and reads it back by that string, with no check that the reader owns the entry.
An attacker who knows or guesses a victim's X-Request-Id sends their own scoring request with the same value. Their query embedding replaces the victim's before the document scoring pass, so the victim receives rankings computed against the wrong query. Because the data-parallel router pins all requests with one cache key to the same engine (crc32(query_key)), the collision is deterministic. Timing can also let one request consume the shared use counter and push the other into a late-interaction cache-miss ValueError.
The impact is integrity and availability of scoring results for individual requests. There is no code execution or data disclosure, and the CVSS rates attack complexity high. Non-flash late-interaction scoring does not build a cross-request key and is not affected.
Who is affected
vllm before 0.30.0, confirmed on 0.25.1. Exposed deployments serve a late-interaction model on /score or /rerank with flash late interaction enabled, which is the default for supported models, and let multiple users share the endpoint.
pip show vllmIf all callers are one trusted application that sets unique request ids, the risk is low. If untrusted clients can set X-Request-Id, it applies.
vllm
- Ecosystem
- PyPI
- Affected
- < 0.30.0
- Fixed in
- 0.30.0
- Check
pip show vllm
How to fix it
Upgrade to vLLM 0.30.0:
pip install -U vllm==0.30.0The suggested fix mints a server-side random_uuid() namespace for the query cache keys and carries them on PoolingServeContext, so colliding X-Request-Id values no longer share a key. The advisory gives no workaround. As a stopgap, a gateway in front of vLLM can overwrite or strip the client's X-Request-Id header and replace it with a unique value.
How to tell if you were hit
Look in access logs for different clients sending the same X-Request-Id to /score or /rerank within seconds of each other. Search vLLM logs for late-interaction query cache miss for key, which appears when a request loses its cached query. Users reporting rankings that do not match their query point the same way.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Affected
- Ecosystem / package: pip /
vllm - Affected versions: vLLM ≤ 0.25.1 (confirmed on 0.25.1, commit `752a3a504485`). The lower bound predates 0.25.1; maintainers can confirm how far back the flash late-interaction query cache reaches.
Summary
On late-interaction /score and /rerank deployments with flash late interaction enabled (the default for supported models), the worker caches per-request query embeddings under a key derived from the caller-controlled X-Request-Id header. A second concurrent request that reuses the victim's header value replaces the victim's cached query embedding before document scoring — so the victim's documents are scored against the attacker's query. Because the data-parallel router pins all requests sharing a cache key to the same engine, the collision is deterministic for an attacker who reuses the victim's X-Request-Id. Depending on timing, one request can also consume the shared use counter and force the other request into a late-interaction cache-miss error.
This is a remotely reachable, request-controlled cross-request integrity break on the standard scoring and reranking endpoints. It requires only that flash late interaction be enabled, which is the default for supported models.
Affected code
Links pinned to the confirmed commit `752a3a504485` (v0.25.1):
- `vllm/entrypoints/serve/engine/serving.py#L117-L124` —
_base_request_id()copies the publicX-Request-Idheader directly. - `vllm/entrypoints/pooling/base/serving.py#L109` — the frontend request id is
f"{self.request_id_prefix}-{self._base_request_id(raw_request)}". - `vllm/entrypoints/pooling/scoring/serving.py#L211` —
flash_late_interaction()(at L191) derives worker cache keys directly from that id:query_keys = [f"{ctx.request_id}-query-{i}" for i in range(n_queries)]. - `vllm/v1/pool/late_interaction.py#L30-L36` — the data-parallel routing helper pins all requests sharing a
query_keyto the same engine viacrc32(query_key), making collisions deterministic. - `vllm/v1/worker/gpu/pool/late_interaction_runner.py#L95` — the worker stores query embeddings in a process-local cache keyed only by that string:
self._query_cache[query_key] = output.clone().
The caller-controlled header enters as the request id, and the flash late-interaction path derives the worker cache key directly from it:
# vllm/entrypoints/serve/engine/serving.py Lines 116-126
@staticmethod
def _base_request_id(
raw_request: Request | None, default: str | None = None
) -> str | None:
"""Pulls the request id to use from a header, if provided"""
if raw_request is not None and (
(req_id := raw_request.headers.get("X-Request-Id")) is not None
):
return req_id
return random_uuid() if default is None else default# vllm/entrypoints/pooling/scoring/serving.py Lines 207-212
n_queries = ctx.n_queries
n_docs = len(ctx.engine_inputs) - n_queries
query_engine_inputs = ctx.engine_inputs[:n_queries]
query_keys = [f"{ctx.request_id}-query-{i}" for i in range(n_queries)]
query_uses = [n_docs if n_queries == 1 else 1] * n_queriesThe worker then stores and reads the query embedding under that string with no check that the reader owns the entry — a colliding key returns another request's cached query, or (once the use counter is exhausted) raises a cache-miss error:
# vllm/v1/worker/gpu/pool/late_interaction_runner.py Lines 91-107
if mode == LATE_INTERACTION_MODE_CACHE_QUERY:
assert query_uses is not None
# `output` can be a view into the current step's hidden-states
# buffer, so clone it before storing across scheduling steps.
self._query_cache[query_key] = output.clone()
self._query_uses[query_key] = query_uses
outputs[i] = torch.zeros((), device=output.device, dtype=torch.float32)
continue
if mode == LATE_INTERACTION_MODE_SCORE_DOC:
query_output = self._query_cache.get(query_key)
if query_output is None:
raise ValueError(
"late-interaction query cache miss for key "
f"{query_key!r}. Ensure query requests are executed "
"before their paired document requests."
)The bug is specific to the flash late-interaction path. Non-flash late-interaction scoring computes MaxSim directly from one request's in-memory outputs and does not create a cross-request worker cache key.
Impact
A network client of the standard scoring API can, on a flash late-interaction /score or /rerank deployment:
- Corrupt another user's results — by reusing the victim's
X-Request-Id, the attacker's query embedding overwrites the victim's cached entry, so the victim's documents are scored against the attacker's query (a cross-request integrity break). - Induce errors — depending on timing, one request consumes the shared use counter and forces the other request into a late-interaction cache-miss error.
Both consequences follow deterministically from reusing the victim's header value, because same-key work is pinned to one engine. This is reachable through normal request handling and does not depend on any trusted inter-node network.
Suggested Fix
Derive the flash late-interaction query-cache key from a server-generated, unforgeable per-request identifier (a random_uuid() namespace) rather than the caller-supplied X-Request-Id, and thread that key through the PoolingServeContext to the doc-scoring pass so both passes reuse the same key and a caller cannot address another request's cache entry.
In vllm/entrypoints/pooling/scoring/serving.py, the encode-queries pass mints a fresh namespace and stashes the keys on the context:
- query_keys = [f"{ctx.request_id}-query-{i}" for i in range(n_queries)]
+ query_namespace = random_uuid()
+ query_keys = [
+ f"late-interaction-{query_namespace}-query-{i}" for i in range(n_queries)
+ ]
+ ctx.late_interaction_query_keys = query_keysand the encode-docs pass reads those stored keys instead of re-deriving them from ctx.request_id:
- query_keys = [f"{ctx.request_id}-query-{i}" for i in range(n_queries)]
+ query_keys = ctx.late_interaction_query_keys
+ if query_keys is None:
+ raise RuntimeError("Late-interaction query keys were not initialized.")This requires adding the late_interaction_query_keys: list[str] | None = None field to PoolingServeContext (vllm/entrypoints/pooling/typing.py). Because the namespace is a server-generated UUID, colliding X-Request-Id values no longer produce a shared cache key; a regression test asserting exactly that (colliding request ids yield distinct query-cache keys) accompanies the change.
Credit
Reported by: Patch the Planet (Trail of Bits + OpenAI collaboration)
This vulnerability was discovered using GPT-5.5-Cyber as part of the Patch the Planet security initiative.
---
Proposed fix: a fix for this issue is proposed in a public pull request: https://github.com/vllm-project/vllm/pull/51445
Credited to KernelClint, dhalf, jperezdealgaba.
Questions
- Can an attacker read another user's query through this flaw?
The advisory describes overwriting and induced errors, not disclosure. The attacker's query replaces the victim's cached embedding, so the victim's documents are scored against the wrong query.
- Is non-flash late-interaction scoring affected?
No. It computes MaxSim from one request's in-memory outputs and creates no cross-request worker cache key. Only the flash late-interaction path is affected.
- Does the attacker need to know the victim's request id?
Yes. Collision requires reusing the victim's
X-Request-Idvalue, which is why attack complexity is high. If they do, the collision is deterministic because the router pins the key to one engine.
References
Read for this analysis:
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More vLLM vulnerabilities
All vLLM entriesCVE-2026-114050
vLLM: Forged multimodal UUID + P0/P1 processor-cache eviction drift: unauthenticated remote crash of the whole vLLM engine
medium6.5Oct 23, 2026CVE-2026-114055
vLLM : DoS via unvalidated mm_processor_kwargs in multimodal image processors (Isaac, InternVL, H2OVL, etc.)
high7.5Oct 23, 2026CVE-2026-105752
vLLM: Harmony tool continuations drop `cache_salt` — restoring a cross-tenant prefix-cache membership oracle
low3.1Oct 6, 2026CVE-2026-105753
vLLM: Mirrored multimodal IPC caches desync after a rejected request — a later request reusing the same media hash trips a receiver assertion in the engine core
medium6.5Oct 6, 2026CVE-2026-105754
vLLM: Scale-out disaggregated multimodal transport trusts caller-supplied features
medium6.5Oct 5, 2026CVE-2026-105756
vLLM: Loose `cache_salt` validation lets a single request kill EngineCore on LMCache-MP deployments — uncaught downstream `ValueError` denial of service
medium6.5Oct 5, 2026
