Skip to main content

vLLM CVE-2026-44223

MEDIUM
Incorrect Calculation of Buffer Size (CWE-131)
2026-05-06 https://github.com/vllm-project/vllm GHSA-83vm-p52w-f9pw
6.5
CVSS 3.1 · Vendor: https://github.com/vllm-project/vllm
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege API access to vLLM
  2. Delivery
    Confirm extract_hidden_states speculative decoding is active
  3. Exploit
    Send single request with repetition_penalty parameter
  4. Execution
    Trigger tensor shape mismatch in propose()
  5. Persist
    RuntimeError kills EngineCore process
  6. Impact
    Permanent DoS until manual restart

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer size calculation
Exploitation Conditions

Exploitation requires two specific pre-conditions that are both non-default. First, the vLLM server must be explicitly configured to use extract_hidden_states as its speculative decoding proposer - this requires an operator to have set the appropriate speculative decoding configuration at server startup; deployments using other proposers or no speculative decoding at all are completely unaffected. Second, the attacker must be able to submit API requests to the vLLM server, consistent with the CVSS PR:L rating - unauthenticated exploitation is not indicated by the CVSS vector. Once both conditions are met, exploitation is immediate and deterministic: including any of repetition_penalty, frequency_penalty, or presence_penalty with any non-default value in a single request is sufficient. No race condition, concurrency, elevated workload, or multi-step setup is required. What limits exploitation is the extract_hidden_states configuration requirement - the vast majority of vLLM deployments not using this specific proposer are entirely unexposed.

Impact

The CVSS 6.5 score with vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H accurately reflects the network-accessible, low-complexity, availability-only impact. Real-world risk is gated primarily by configuration: the vulnerability is only present when extract_hidden_states is explicitly set as the speculative decoding method, which is non-default. EPSS at 0.04% (12th percentile) is consistent with low observed exploitation, and there is no CISA KEV listing. However, for affected deployments the threat model is severe: the DoS is deterministic, instant, and permanent (no auto-recovery short of process restart), meaning a single authenticated request can take an entire inference service offline. Organizations running GPU inference infrastructure at scale should treat this as high priority within the affected configuration scope. The low EPSS is likely a function of the non-default configuration requirement rather than any difficulty in exploitation once that configuration is present.

Exploit ScenarioDerived

An attacker with low-privilege access to the vLLM API (e.g., a valid API key in a shared inference deployment) submits a single chat completions request with "repetition_penalty": 1.1 to a server running vLLM v0.18.0-v0.19.1 with extract_hidden_states speculative decoding enabled. On the first decode step after token 0, the rejection sampler returns a (batch_size, 2) tensor; penalty broadcasting raises a RuntimeError that kills EngineCore, taking the entire inference service offline for all users until an operator manually restarts the process.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Denial of service in vLLM v0.18.0-v0.19.1 permanently crashes the EngineCore process when any API request includes a sampling penalty parameter against a deployment configured with extract_hidden_states speculative decoding. A refactor in PR #37013 (v0.18.0) removed the .unsqueeze(-1) call that normalized tensor shape, causing a broadcast shape mismatch ((batch_size, 2) vs. expected (batch_size, 1)) during penalty application and an unrecoverable RuntimeError. The crash is deterministic - a single request with repetition_penalty: 1.1 suffices - but no public exploit code has been identified at time of analysis and EPSS is very low (0.04%, 12th percentile).

RemediationAI

Upgrade to vLLM v0.20.0 or later, which includes the fix from PR #38610 (https://github.com/vllm-project/vllm/pull/38610); the patch adds sampled_token_ids[:, :1] slicing in extract_hidden_states.py to enforce the correct (batch_size, 1) shape. If immediate upgrade is not feasible, two compensating controls are available with different trade-offs: first, disable extract_hidden_states as the speculative decoding method and switch to a different proposer or disable speculative decoding entirely - this eliminates the vulnerable code path with no impact on non-speculative inference, but loses speculative decoding throughput gains; second, configure an API gateway or middleware to strip or reject requests containing repetition_penalty, frequency_penalty, or presence_penalty fields before they reach vLLM - this preserves speculative decoding performance but breaks client applications that depend on those sampling parameters.

Affected Packages

pypi vllm fix: 0.20.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

vLLM is a Python LLM inference engine (pip package pkg:pip/vllm) that implements speculative decoding to accelerate token generation by proposing candidate tokens via a lightweight proposer before main-model verification. The extract_hidden_states proposer, implemented in vllm/v1/spec_decode/extract_hidden_states.py, had its propose() return type changed in PR #37013 from tuple[Tensor, KVConnectorOutput | None] to bare Tensor, simultaneously dropping the .unsqueeze(-1) call. After the first decode step, the rejection sampler allocates output with shape (batch_size, max_spec_len + 1); with num_speculative_tokens=1 this becomes (batch_size, 2). When any of the three penalty tensors (repetition_penalty, frequency_penalty, presence_penalty) are broadcast against this mis-shaped output, PyTorch raises a RuntimeError. The root cause class is CWE-131 (Incorrect Calculation of Buffer Size): a refactor-induced shape invariant violation with no bounds check or defensive slicing.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/vllm-project/vllm) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Network API access requires low-privilege credentials (PR:L); single request deterministically crashes service (A:H); no confidentiality or integrity impact applies.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/vllm-project/vllm).

CVSS VectorVendor: https://github.com/vllm-project/vllm

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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:

python
# 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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Prevalence
Medium
widely used open-source LLM inference framework in ML/AI production deployments
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:pip/vllm

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy