Skip to main content

Python CVE-2026-34756

| EUVDEUVD-2026-19351 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-04-03 https://github.com/vllm-project/vllm GHSA-3mwp-wvh9-7528
6.5
CVSS 3.1 · Vendor: https://github.com/vllm-project/vllm
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS score of 6.5 reflects a high-impact Denial of Service (Availability) with a network-accessible attack vector (AV:N) and low complexity (AC:L), but the vector includes PR:L (low privilege required), suggesting authenticated access is needed. However, the description explicitly states the vulnerability is exploitable by unauthenticated attackers, representing a critical inconsistency in the threat model - if truly unauthenticated, the actual CVSS should be higher (likely 7.5 with PR:N). The absence of EPSS data limits probabilistic exploitation assessment, but public accessibility of the vLLM API server and the single-request attack pattern indicate high practical exploitability. KEV status is not confirmed in provided data, and no POC code is referenced, though the GitHub PR and commit references suggest the vulnerability is already known to the security research community and likely has proof-of-concept demonstrations. SSVC lens: exploitation is likely straightforward (no special tooling required), automatable (a single crafted HTTP POST), and causes complete technical impact (service unavailability). The authentication requirement discrepancy is a material risk signal - if the vulnerability truly requires low privileges or is fully unauthenticated despite the CVSS vector, this represents higher real-world risk than the CVSS score alone suggests. For organizations running public-facing vLLM instances without additional API gateway rate limiting or request body size constraints, this is a critical priority regardless of the CVSS score.

Exploit ScenarioDerived

An unauthenticated attacker with network access to a public-facing vLLM OpenAI API endpoint crafts an HTTP POST request to /v1/chat/completions with a ChatCompletionRequest payload containing n=999999999 (or any extremely large integer). The vLLM server parses the request, bypasses the missing upper bound check in the protocol layer, and begins fanning out millions of request copies in the engine layer. Within seconds, the asyncio event loop is monopolized by the synchronous for-loop, the process memory explodes from gigabytes of cloned request objects, and the OS out-of-memory killer terminates the vLLM process, taking the entire inference service offline. A single attacker with minimal resources and no authentication can achieve complete denial of service against production infrastructure. No public exploit code is referenced in the provided data, but the straightforward nature of crafting a malicious HTTP request makes this trivially exploitable.

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 – Apr 03, 2026

Denial of Service in vLLM OpenAI-compatible API server allows unauthenticated remote attackers to crash the service via a single HTTP request containing an extremely large n parameter. The lack of upper bound validation causes the asyncio event loop to freeze while allocating millions of request object copies, leading to rapid Out-Of-Memory crashes. CVSS 6.5 with moderate real-world risk due to authentication requirement in the disclosed CVSS vector (PR:L), though the description indicates unauthenticated exploitability - a significant discrepancy warranting clarification from the vendor.

RemediationAI

Upgrade vLLM to a patched version released after commit b111f8a61f100fdca08706f41f29ef3548de7380 (merged via PR #37952). Consult https://github.com/vllm-project/vllm/pull/37952 and https://github.com/vllm-project/vllm/security/advisories/GHSA-3mwp-wvh9-7528 for the exact fixed version number and installation instructions. As an interim mitigation, implement API gateway rate limiting and HTTP request body size restrictions to prevent rapid submission of large n parameters, and consider enforcing authentication on the vLLM API endpoint if the deployment supports it. If running vLLM in Kubernetes, configure resource quotas and pod memory limits to trigger graceful termination before system-wide OOM-killer events. Monitor asyncio event loop latency and heap memory allocation for anomalies indicative of attack attempts.

Affected VersionsENISA

vllm 0.1.0, < 0.19.0

Affected Packages

pypi vllm fix: 0.19.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-based LLM inference framework providing an OpenAI-compatible API server (vllm.entrypoints.openai.api_server). The ChatCompletionRequest and CompletionRequest Pydantic models in vllm/entrypoints/openai/chat_completion/protocol.py define an n parameter (number of independent completions to generate) as a simple integer without upper bound constraints via pydantic.Field validation. When a request is processed through vllm/sampling_params.py, the _verify_args method checks only the lower bound (n >= 1) but omits upper bound validation. At the engine layer (vllm/v1/engine/async_llm.py), the request is fanned out via a synchronous for-loop that executes n times, creating n copies of the request object using Python's copy() function. Since Python asyncio runs single-threaded on one event loop, this monolithic loop blocks all other I/O operations while simultaneously exhausting heap memory by allocating millions of request object instances, violating CWE-770 (Allocation of Resources Without Limits or Throttling). The root cause is incomplete input validation across the protocol, sampling, and engine layers.

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
Red Hat 6.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

Lifecycle Timeline

2
Patch released
Apr 03, 2026 - 16:00 nvd
Patch available
CVE Published
Apr 03, 2026 - 15:35 nvd
MEDIUM 6.5

DescriptionCVE.org

Summary

A Denial of Service vulnerability exists in the vLLM OpenAI-compatible API server. Due to the lack of an upper bound validation on the n parameter in the ChatCompletionRequest and CompletionRequest Pydantic models, an unauthenticated attacker can send a single HTTP request with an astronomically large n value. This completely blocks the Python asyncio event loop and causes immediate Out-Of-Memory crashes by allocating millions of request object copies in the heap before the request even reaches the scheduling queue.

Details

The root cause of this vulnerability lies in the missing upper bound checks across the request parsing and asynchronous scheduling layers:

  1. Protocol Layer:

In vllm/entrypoints/openai/chat_completion/protocol.py, the n parameter is defined simply as an integer without any pydantic.Field constraints for an upper bound.

python
class ChatCompletionRequest(OpenAIBaseModel):
# Ordered by official OpenAI API documentation
# https://platform.openai.com/docs/api/reference/chat/create
    messages: list[ChatCompletionMessageParam]
    model: str | None = None
    frequency_penalty: float | None = 0.0
    logit_bias: dict[str, float] | None = None
    logprobs: bool | None = False
    top_logprobs: int | None = 0
    max_tokens: int | None = Field(
        default=None,
        deprecated="max_tokens is deprecated in favor of "
        "the max_completion_tokens field",
    )
    max_completion_tokens: int | None = None
    n: int | None = 1
    presence_penalty: float | None = 0.0
  1. SamplingParams Layer (Incomplete Validation):

When the API request is converted to internal SamplingParams in vllm/sampling_params.py, the _verify_args method only checks the lower bound (self.n < 1), entirely omitting an upper bounds check.

python
    def _verify_args(self) -> None:
        if not isinstance(self.n, int):
            raise ValueError(f"n must be an int, but is of type {type(self.n)}")
        if self.n < 1:
            raise ValueError(f"n must be at least 1, got {self.n}.")
  1. Engine Layer (The OOM Trigger):

When the malicious request reaches the core engine (vllm/v1/engine/async_llm.py), the engine attempts to fan out the request n times to generate identical independent sequences within a synchronous loop.

python
# Fan out child requests (for n>1).
        parent_request = ParentRequest(request)
        for idx in range(parent_params.n):
            request_id, child_params = parent_request.get_child_info(idx)
            child_request = request if idx == parent_params.n - 1 else copy(request)
            child_request.request_id = request_id
            child_request.sampling_params = child_params
            await self._add_request(
                child_request, prompt_text, parent_request, idx, queue
            )
        return queue

Because Python's asyncio runs on a single thread and event loop, this monolithic for-loop monopolizes the CPU thread. The server stops responding to all other connections (including liveness probes). Simultaneously, the memory allocator is overwhelmed by cloning millions of request object instances via copy(request), driving the host's Resident Set Size (RSS) up by gigabytes per second until the OS OOM-killer terminates the vLLM process.

Impact

Vulnerability Type: Resource Exhaustion / Denial of Service

Impacted Parties:

  • Any individual or organization hosting a public-facing vLLM API server (vllm.entrypoints.openai.api_server), which happens to be the primary entrypoint for OpenAI-compatible setups.
  • SaaS / AI-as-a-Service platforms acting as reverse proxies sitting in front of vLLM without strict HTTP body payload validation or rate limitations.

Because this vulnerability exploits the control plane rather than the data plane, an unauthenticated remote attacker can achieve a high success rate in taking down production inference hosts with a single HTTP request. This effectively circumvents any hardware-level capacity planning and conventional bandwidth stress limitations.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

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.

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

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