Oct 6, 2026·5 min read·21 visits
A state desynchronization between vLLM's frontend and backend caches allows remote authenticated users to trigger a fatal assertion crash (CWE-617) by submitting a validation-failing multimodal request followed by a duplicate request, leading to complete server denial of service.
A state desynchronization (cache drift) vulnerability exists in the multimodal Inter-Process Communication (IPC) Least Recently Used (LRU) caches of vLLM. When a multimodal request fails validation after its media hash has been registered on the frontend but before the payload is committed to the backend engine core, the frontend and backend caches drift out of lockstep. A subsequent request reusing the same media triggers an assertion failure in the backend engine core, resulting in a complete denial of service.
vLLM uses a multi-process architecture to decouple request scheduling from high-performance GPU tensor computations. To optimize the processing of multimodal data such as images and video, vLLM implements a mirrored Inter-Process Communication (IPC) cache system.
This architecture consists of a frontend sender cache (MultiModalProcessorSenderCache on process P0) and an engine core receiver cache (MultiModalReceiverCache on process P1). The frontend cache acts as a shadow metadata tracker, while the backend cache stores the actual tensor payloads in GPU memory.
The system operates under a lockstep assumption. If the frontend registers a cache hit for a media hash, it transmits the request metadata with the payload data omitted (data=None), assuming the backend already possesses the cached tensor. A breakdown in this lockstep coordination exposes a reachable assertion bug class (CWE-617), allowing an attacker to terminate the backend engine process via network requests.
The root cause of the vulnerability is an unidirectional state mutation during the rendering phase that is not rolled back when downstream request validation fails.
When a multimodal request is processed, P0 renders the media, computes its unique cryptographic hash (mm_hash), and commits it directly to the P0 shadow metadata cache. If the request is subsequently rejected during validation (for example, if the prompt length exceeds the model's maximum limit and raises a ValueError), the request is discarded. Consequently, the actual tensor payload is never transmitted to or registered in P1's receiver cache.
This sequence causes state desynchronization: P0 assumes P1 has cached the media, whereas P1 has no record of the hash. When a subsequent request is submitted with the identical media, P0 detects a shadow cache hit and forwards the request with data=None. Upon receiving the request, P1 queries its receiver cache, returns None, and hits a fatal assertion block in vllm/multimodal/cache.py which terminates the process.
In vulnerable versions of vLLM (prior to 0.28.0), the engine core unconditionally assumed cache consistency. The receiver cache lookup in vllm/multimodal/cache.py contained the following check:
# Vulnerable assertion in vllm/multimodal/cache.py
if (cached_item := self._cache.get(mm_hash)) is not None:
return cached_item
assert mm_item is not None, f"Expected a cached item for {mm_hash=}"If the frontend registered a shadow cache hit, mm_item was received as None. If mm_hash was missing from self._cache due to previous request validation failures, the assertion failed, causing the engine to abort execution.
The vulnerability was resolved by implementing a dual mitigation strategy. First, the fatal assertion was replaced with a retryable exception in PR #46747:
# Patched implementation with recovery exception
if (cached_item := self._cache.get(mm_hash)) is not None:
return cached_item
if mm_item is None:
raise MultiModalCacheMissError([mm_hash])Second, immediate cache rollback was introduced in the OpenAI entrypoint (vllm/entrypoints/openai/chat_completion/serving.py) via PR #51897 to discard cache entries if a ValueError occurs during token validation:
# Patched OpenAI serving entrypoint
try:
max_tokens = get_max_tokens(...
)
except ValueError:
for rendered_input in engine_inputs:
if mm_hashes := cast(
MultiModalHashes | None, rendered_input.get("mm_hashes")
):
self.renderer.discard_mm_cache_entries(mm_hashes)
raiseAn attacker can systematically exploit this flaw through a two-step request sequence targeting any multimodal model served by a vulnerable vLLM instance.
First, the attacker submits a request containing an image payload paired with an excessively long prompt designed to trigger a validation failure (such as exceeding max_model_len). P0 computes the image hash, adds it to the shadow cache, and then the validation fails. The backend rejects the request, leaving its receiver cache empty.
Second, the attacker submits a valid request containing the exact same image. P0 identifies the hash in its shadow cache, sends data=None to the backend, and the backend crashes upon encountering the missing reference. This crash halts inference operations for all active clients on the shared server.
The execution of this vulnerability results in a complete denial of service of the vLLM inference server. Because vLLM is typically deployed as a shared daemon serving multiple downstream applications or clients, crashing the engine core process interrupts all active inference sessions.
This vulnerability has a CVSS 3.1 base score of 6.5 (Medium), reflecting the requirement for network access with low privileges (PR:L) and the resulting high availability impact (A:H). While confidentiality and integrity remain unaffected, the ease of triggering this state desynchronization makes it a highly effective vectors for targeted service disruptions.
Remediation requires upgrading the vLLM installation to version 0.28.0 or later, which integrates both the self-healing fallback protocol and proactive validation rollback.
If upgrading is not immediately possible, organizations can apply the following workarounds:
Disable multimodal IPC caching by adjusting the engine configuration parameters, which forces full payload delivery for every request and eliminates the lockstep dependency.
Implement upstream validation of prompt token lengths at the API gateway or proxy layer. This ensures that validation-failing requests are dropped before they reach vLLM's processing pipeline, preventing the initial cache desynchronization.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
vllm vllm-project | < 0.28.0 | 0.28.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-617 (Reachable Assertion) |
| Attack Vector | Network (AV:N) |
| CVSS Score | 6.5 |
| Impact | Complete Denial of Service (DoS) |
| Exploit Status | Proof of Concept (PoC) / Unit Tests available |
| KEV Status | Not listed in CISA KEV |
The software contains an assertion statement that can be triggered by an input from an untrusted source, causing the application to terminate abnormally or crash, leading to a denial of service.
File Browser versions prior to 2.63.17 contain an authorization and state-management flaw in the BoltDB storage backend. When an authenticated user deletes a shared directory via an HTTP request with a trailing slash (e.g., DELETE /api/resources/a/), the share cleanup routine queries the database index using the unnormalized path before stripping the trailing slash. Because canonical share paths are stored without trailing slashes (e.g., /a), the database prefix query fails to match the parent directory share record. If a directory with the same name is later recreated, the dormant public share hash automatically reactivates and exposes the new directory contents to unauthenticated users.
An uncontrolled memory allocation vulnerability exists in ag-psd versions prior to 31.0.0. When parsing Adobe Photoshop Document (PSD) files, the readPsd() function reads image dimensions and color depth directly from the file header and allocates off-heap typed arrays without validating whether the requested memory size is proportional to the input stream or bounded by operational thresholds. An unauthenticated attacker can supply a crafted 52-byte PSD payload that triggers an immediate 3.35 GB memory allocation, resulting in process termination via the operating system Out-Of-Memory (OOM) killer.
CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).
CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.
An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.