Skip to content
MediumVulnerabilityLLM-specific

GHSA-3mwp-wvh9-7528: vLLM: Unauthenticated OOM Denial of Service via Unbounded `n` Parameter in OpenAI API Server

Published
Record updated
View JSON
Affected
  • vllm >= 0.1.0, < 0.19.0
Fixed in
0.19.0
  • released April 3, 2026, on the day of disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

The vLLM OpenAI-compatible API server has a denial-of-service flaw in the `n` parameter of `ChatCompletionRequest` and `CompletionRequest`. These Pydantic models set no upper bound on `n`, and `_verify_args` in `vllm/sampling_params.py` checks only the lower bound, so an unauthenticated attacker can send one request with a very large `n`. The engine in `vllm/v1/engine/async_llm.py` then fans the request out into millions of copies, blocking the asyncio event loop and driving memory use up until the OS OOM-killer terminates the process.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.