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

CVE-2026-44223: vLLM: extract_hidden_states speculative decoding crashes server on any request with penalty parameters

mediumCVSS 3.1 6.5GHSA-83vm-p52w-f9pw

vLLM 0.18.0 through 0.19.1 can be crashed by one API request when the server uses the extract_hidden_states speculative decoding method. Any request with repetition_penalty, frequency_penalty or presence_penalty kills the EngineCore process and takes the service down. Upgrade to vLLM 0.20.0.

Published May 6, 2026 · Updated Jun 8, 2026 · Analysis Oct 28, 2026

What an attacker can do

The extract_hidden_states proposer in vllm/v1/spec_decode/extract_hidden_states.py returns the wrong tensor shape. In v0.17.0, propose() returned sampled_token_ids.unsqueeze(-1), shape (batch_size, 1). A refactor in v0.18.0 (PR 37013) moved the KV connector out of propose() and dropped the unsqueeze. After the first decode step, the rejection sampler allocates its output as (batch_size, max_spec_len + 1). With num_speculative_tokens=1 that is (batch_size, 2). Applying sampling penalties then hits a broadcast shape mismatch and raises a RuntimeError in the EngineCore process.

The crash is deterministic. It needs no concurrency, race or special workload. One request with a penalty parameter, for example "repetition_penalty": 1.1, is enough. The CVSS vector asks for low privileges, which in practice means anyone who can send a completion request to the API. The result is availability loss only: the engine dies and the service stays down until someone restarts it. There is no data or code-execution impact.

Servers that do not use extract_hidden_states speculative decoding are not exposed to this path.

Who is affected

vLLM from 0.18.0 up to but not including 0.20.0 (the advisory says 0.18.0 to 0.19.1 inclusive), and only when configured with extract_hidden_states as the speculative decoding method. Version 0.17.0 returned the right shape. Check your version:

pip show vllm

Then check your launch flags or speculative config for extract_hidden_states.

vllm

Ecosystem
PyPI
Affected
>= 0.18.0, < 0.20.0
Fixed in
0.20.0
Check
pip show vllm

How to fix it

Upgrade to vLLM 0.20.0 or later:

pip install --upgrade "vllm>=0.20.0"

The fix (PR 38610) slices the return value to sampled_token_ids[:, :1] so the shape is always (batch_size, 1). Workarounds from the advisory:

  • Do not use extract_hidden_states as the speculative decoding method on affected versions.
  • Reject or strip repetition_penalty, frequency_penalty and presence_penalty at an API gateway before requests reach vLLM.

How to tell if you were hit

Look in the vLLM logs for a RuntimeError about a tensor size or broadcast mismatch followed by EngineCore exiting, soon after a request that set a penalty parameter. Check request logs or your gateway for the request just before the crash and for repeated crash-restart cycles. Unexplained restarts of the serving process on a server with speculative decoding enabled are the main sign.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The extract_hidden_states speculative decoding proposer in vLLM returns a tensor with an incorrect shape after the first decode step, causing a RuntimeError that crashes the EngineCore process. The crash is triggered when any request in the batch uses sampling penalty parameters (repetition_penalty, frequency_penalty, or presence_penalty).

A single request with a penalty parameter (e.g., "repetition_penalty": 1.1) is sufficient to crash the server. The crash is deterministic and immediate — no concurrency, race condition, or special workload is required.

Details

In vLLM v0.17.0, the extract_hidden_states proposer's propose() method returned sampled_token_ids.unsqueeze(-1), producing a tensor of shape (batch_size, 1).

In PR #37013 (first released in v0.18.0), the KV connector interface was refactored out of propose(). The return type changed from tuple[Tensor, KVConnectorOutput | None] to Tensor, and the .unsqueeze(-1) call was removed along with the KV connector output:

# Before (v0.17.0):
return sampled_token_ids.unsqueeze(-1), kv_connector_output  # shape (batch_size, 1)

# After (v0.18.0+):
return sampled_token_ids  # shape (batch_size, 2) after first decode step

The refactor missed that sampled_token_ids changed semantics between the first and subsequent decode steps. After the first decode step, the rejection sampler allocates its output as (batch_size, max_spec_len + 1). With num_speculative_tokens=1, this produces shape (batch_size, 2) instead of the expected (batch_size, 1), causing a broadcast shape mismatch during penalty application.

Impact

Any vLLM deployment between v0.18.0 and v0.19.1 (inclusive) configured with extract_hidden_states speculative decoding is affected. A single API request containing any penalty parameter immediately and permanently crashes the EngineCore process, resulting in complete loss of service availability.

Patches

Fixed in PR #38610, first included in vLLM v0.20.0. The fix slices the return value to sampled_token_ids[:, :1], ensuring the correct (batch_size, 1) shape regardless of the rejection sampler's output dimensions.

Workarounds

  • Upgrade to vLLM v0.20.0 or later.
  • If upgrading is not possible, avoid using extract_hidden_states as the speculative decoding method on affected versions.
  • Alternatively, reject or strip penalty parameters (repetition_penalty, frequency_penalty, presence_penalty) from incoming requests at an API gateway before they reach vLLM.

Credited to Yunzez.

Questions

Is vLLM 0.19.1 affected by CVE-2026-44223?

Yes, if it runs extract_hidden_states speculative decoding. The affected range starts at 0.18.0 and the fix first shipped in 0.20.0.

Do I need special access to trigger the crash?

You need to be able to send a request to the API. One request with a penalty parameter is enough. The CVSS vector lists low privileges.

Can I keep my version and block it at the gateway?

Yes. The advisory suggests stripping or rejecting repetition_penalty, frequency_penalty and presence_penalty before requests reach vLLM, or disabling extract_hidden_states.

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