NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · vLLM

CVE-2026-55514: vLLM denial of service via prompt embeds on M-RoPE models

highCVSS 4.0 7.1GHSA-33cg-gxv8-3p8g

vLLM 0.12.0 up to 0.24.0 can be crashed by one request. With `--enable-prompt-embeds` and a model that uses M-RoPE, a `/v1/completions` call carrying only prompt embeds trips an assertion in the EngineCore and shuts down the whole server. Anyone allowed to call that endpoint can do it. Fixed in vLLM 0.24.0.

Published Jul 20, 2026 · Analysis Oct 25, 2026

What an attacker can do

In GPUModelRunner._init_mrope_positions, a type-narrowing line asserts that req_state.prompt_token_ids is not None. That is false for a /v1/completions request with prompt=None and prompt_embeds set, because the cached request state then has no token IDs. The assertion fails with AssertionError: M-RoPE requires prompt_token_ids to be available. inside the EngineCore. The API server then logs EngineDeadError: EngineCore encountered an issue and the whole application stops.

The advisory calls the attack extremely easy. Copying the official prompt_embeds online-mode example almost word for word, with your model name and host, gives a guaranteed shutdown. The attacker needs access to the completions endpoint, so deployments with an API key shared with many clients, or an unauthenticated endpoint, are exposed. The CVSS vector rates only availability impact, and it is high.

The result is an outage for every user of the instance until it is restarted, and a loop of repeat outages if the attacker keeps sending. No data leaks and no code runs.

The chat completions endpoint is not affected, because it always has token IDs from the chat template. Offline use through LLM.generate could hit the same assertion only with a hand-built request, which the advisory sees as a slim risk.

Who is affected

The pip package vllm from 0.12.0 up to, but not including, 0.24.0. A server is exposed only when both conditions hold: it was started with --enable-prompt-embeds, and the served model supports M-RoPE (multi-dimensional rotary position embedding, as used by some multimodal models).

pip show vllm

Then check your launch command or config for --enable-prompt-embeds.

vllm

Ecosystem
PyPI
Affected
>= 0.12.0, < 0.24.0
Fixed in
0.24.0
Check
pip show vllm

How to fix it

Upgrade to vLLM 0.24.0:

pip install --upgrade "vllm>=0.24.0"

The fix, in pull request 45252, replaces the fatal assertion. When only embeddings are sent, the code takes the sequence length from the embeddings tensor and uses dummy token IDs. The M-RoPE position function needs only the length when there are no multimodal features.

The advisory names no other workaround. Not passing --enable-prompt-embeds removes the path, since the crash needs that flag. Keep the completions endpoint behind authentication until you upgrade.

How to tell if you were hit

Look in the server logs for the traceback ending in AssertionError: M-RoPE requires prompt_token_ids to be available. from _init_mrope_positions, followed by AsyncLLM output_handler failed and EngineDeadError. The failing frames are in gpu_model_runner.py (_update_states, then _init_mrope_positions).

Correlate the crash time with access logs: a POST to /v1/completions whose body has prompt_embeds and no prompt is the trigger. Repeated restarts of the vLLM container or process are a sign of an attacker retrying. Find the client address or API key and block it.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

_Short summary of the problem. Make the impact and severity as clear as possible. For example: An unsafe deserialization vulnerability allows any unauthenticated user to execute arbitrary code on the server._

Sending a pure prompt embeds payload in a /v1/completions request with a model using M-RoPE causes the EngineCore to fail an assertion and fatally crash, shutting down the entire server application.

Any remote user who is authorized to make a /v1/completions endpoint can trivially make such a request and induce a crash.

Details

_Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._

In commit 56669c1, a simple assert intended to be a type-narrowing assert was added to the _init_mrope_positions method in GPUModelRunner (the offending line on main at the time of writing: https://github.com/vllm-project/vllm/blob/2d481f8a946ee0521872af0f098674a8ee01ce4a/vllm/v1/worker/gpu_model_runner.py#L1588-L1607).

assert req_state.prompt_token_ids is not None, (
            "M-RoPE requires prompt_token_ids to be available."
        )

This type narrowing assert is to prevent mypy errors later in the function because None is not a valid type for mrope_model.get_mrope_input_positions. Unfortunately, this assertion is not always true. /v1/completions requests that specify prompt=None and prompt_embeds=<not none> will indeed create a CachedRequestState where prompt_token_ids is None. This triggers the assertion, which in turn crashes the EngineCore and the Server application.

(EngineCore pid=351) ERROR 06-11 00:48:03 [core.py:1167]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 3997, in execute_model
(EngineCore pid=351) ERROR 06-11 00:48:03 [core.py:1167]     deferred_state_corrections_fn = self._update_states(scheduler_output)
(EngineCore pid=351) ERROR 06-11 00:48:03 [core.py:1167]                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=351) ERROR 06-11 00:48:03 [core.py:1167]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 1239, in _update_states
(EngineCore pid=351) ERROR 06-11 00:48:03 [core.py:1167]     self._init_mrope_positions(req_state)
(EngineCore pid=351) ERROR 06-11 00:48:03 [core.py:1167]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 1582, in _init_mrope_positions
(EngineCore pid=351) ERROR 06-11 00:48:03 [core.py:1167]     assert req_state.prompt_token_ids is not None, (
(EngineCore pid=351) ERROR 06-11 00:48:03 [core.py:1167]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore pid=351) ERROR 06-11 00:48:03 [core.py:1167] AssertionError: M-RoPE requires prompt_token_ids to be available.
(APIServer pid=1) ERROR 06-11 00:48:03 [async_llm.py:704] AsyncLLM output_handler failed.
(APIServer pid=1) ERROR 06-11 00:48:03 [async_llm.py:704] Traceback (most recent call last):
(APIServer pid=1) ERROR 06-11 00:48:03 [async_llm.py:704]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/async_llm.py", line 660, in output_handler
(APIServer pid=1) ERROR 06-11 00:48:03 [async_llm.py:704]     outputs = await engine_core.get_output_async()
(APIServer pid=1) ERROR 06-11 00:48:03 [async_llm.py:704]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1) ERROR 06-11 00:48:03 [async_llm.py:704]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core_client.py", line 1030, in get_output_async
(APIServer pid=1) ERROR 06-11 00:48:03 [async_llm.py:704]     raise self._format_exception(outputs) from None
(APIServer pid=1) ERROR 06-11 00:48:03 [async_llm.py:704] vllm.v1.engine.exceptions.EngineDeadError: EngineCore encountered an issue. See stack trace (above) for the root cause.

All requests using the /v1/chat/completions endpoints will have text/prompt_token_ids parts (corresponding to the chat template), and prompt_embeds parts are handled as mm_features. This method (rightly) filters out those prompt_embeds content parts as they are treated as text positions.

A sufficient solution to type narrowing here without raising a fatal assertion is to instead replace the assertion with a using dummy token ids:

def _init_mrope_positions(self, req_state: CachedRequestState):
    model = self.get_model()
    assert supports_mrope(model), "M-RoPE support is not implemented."
    mrope_model = cast(SupportsMRoPE, model)

    # Filter out prompt_embeds modality (text-only position info)
    mrope_features = [
        f for f in req_state.mm_features if f.modality != "prompt_embeds"
    ]
    
    # Handle both token_ids and embeddings-only inputs
    if req_state.prompt_token_ids is not None:
        input_tokens = req_state.prompt_token_ids
    elif req_state.prompt_embeds is not None:
        # For text-only embeddings, dummy token IDs are safe since
        # get_mrope_input_positions only uses len(input_tokens) when mm_features is empty
        seq_len = req_state.prompt_embeds.shape[0]
        input_tokens = list(range(seq_len))
        # Verify no mm_features remain (should be true after prompt_embeds filter)
        assert len(mrope_features) == 0, (
            "M-RoPE with prompt_embeds-only input should have no multimodal features"
        )
    else:
        raise ValueError(
            "M-RoPE requires either prompt_token_ids or prompt_embeds."
        )

    req_state.mrope_positions, req_state.mrope_position_delta = (
        mrope_model.get_mrope_input_positions(
            input_tokens,
            mrope_features,
        )
    )

Technically, in isolation, this method still crashes in the case where req_state.prompt_token_ids is None and req_state.mm_features, so the solution above still leaves that potential vector open. As far as can be determined, however, such a req_state is impossible in the first place in online mode, because it would require a /v1/completions request with prompt_embeds AND multimodal features, but the /v1/completions request schema does not expose multimodal inputs in any discernible way. Today, those are the only two endpoints with prompt_embeds support.

When in offline mode, it *is technically* possible to directly create an EngineCoreRequest that has prompt_embeds and not prompt_token_ids and mm_features, and pass that to LLM.generate. That would trigger this same assertion, and no validation would prevent that combination. It is strongly suspected, though, that this combination would be undefined in any model that support M-RoPE, because it would not be possible to determine which token positions correspond to mm_features. The proposed solution above would end up not setting req_state.mrope_positions and req_state.mrope_position_delta in this scenario, which could result in undefined behavior.

prompt_embeds is far more familiar here than M-RoPE, and it is understood that each model that supports it is responsible for defining its own get_mrope_input_positions which have varying implementations. There is insufficient knowledge to be prescriptive in how the two features should interact in the offline case, other than possibly raising a validation error earlier on preventing that combination (which would emulate the current assertion behavior). Regardless, in offline mode, the chances of a remote user being able to exploit this are slim-to-nil compared to the online case which is incredibly straightforward.

Impact

_What kind of vulnerability is it? Who is impacted?_

  • Denial of Service caused by an incorrect assertion inside of the GPUModelRunner which causes a fatal EngineCore exception
  • Any configuration with --enable-prompt-embeds and M-RoPE-supported model is vulnerable
  • The attack is extremely easy from the remote attacker's perspective (copying the official prompt_embeds online mode docs examples almost-verbatim, accounting for model-name and connection details, of course, will induce a guaranteed shutdown)

Credited to qthequartermasterman, jperezdealgaba.

Questions

Is every vLLM server affected by CVE-2026-55514?

No. Only versions 0.12.0 to below 0.24.0 that run with --enable-prompt-embeds and serve a model that uses M-RoPE.

Can the attacker run code or read data?

No. The advisory describes denial of service only: the assertion kills the EngineCore and the server.

Does /v1/chat/completions trigger the crash?

No. The advisory says chat requests always carry token IDs from the chat template, and prompt embeds there are handled as multimodal features. The trigger is a /v1/completions request with prompt_embeds only.

Which version fixes it?

vLLM 0.24.0 fixes it. The pull request replaces the assertion with a fallback that uses the embeddings length.

References

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 entries