All vulnerabilities

Servers and applications

CVE-2026-34756

OOM Denial of Service via Unbounded `n` Parameter in OpenAI API Server

Severity
Medium 6.5
Published
3 Apr 2026
Last changed
25 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
0.19.0
Exploit chance
0.4% in the next 30 daysHigher than 38% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Allocation without limits (CWE-770)CWE-1284
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Also known as
GHSA-3mwp-wvh9-7528
Sources
NVD, Project advisories (GitHub)

Description

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.

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

  • 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.
From vllm-project/vllm's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
vLLMServers and applications · cpe:a:vllm:vllm
  • From 0.1.0 before 0.19.0
vLLMServers and applications · github:vllm-project/vllm
  • From 0.1.0 before 0.19.0

About vLLM

open-source software for large language model inference

From Wikidata, CC0 1.0.
Docker Hub pulls
44,195,225Docker Hub, 15 Nov 2026
GitHub stars
96,943GitHub, 15 Nov 2026
Forks
24,836GitHub, 15 Nov 2026
Latest release
v0.33.0rc3GitHub, 15 Nov 2026
Released
2 Nov 2026GitHub
License
Apache Software License 2.0Wikidata
First published on GitHub
9 Feb 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-34756
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-34756
  • GitHub Advisory Database https://github.com/advisories/GHSA-3mwp-wvh9-7528
  • github.com https://github.com/vllm-project/vllm/security/advisories/GHSA-3mwp-wvh9-7528