vLLM is vulnerable to an Out-of-Memory (OOM) Denial of Service (DoS) attack due to unbounded frame count processing in the `VideoMediaIO.load_base64()` method
The VideoMediaIO.load_base64() method in vLLM splits base64 video data on commas to extract JPEG frames without limiting the frame count. An unauthenticated attacker can send a single API request with thousands of comma-separated frames, causing the server to decode all frames into memory and crash from excessive memory use.
vllm-project/vllm
Originally disclosed on huntr
vLLM versions 0.8.0 and later are vulnerable to an Out-of-Memory (OOM) Denial of Service (DoS) attack due to unbounded frame count processing in the VideoMediaIO.load_base64() method. When processing video/jpeg data URLs, the method splits the base64 data string on commas to extract individual JPEG frames without enforcing a frame count limit. An attacker can exploit this by crafting a single API request containing thousands of comma-separated base64-encoded JPEG frames in a data URL, causing the server to decode all frames into memory and crash due to excessive memory consumption. This vulnerability is reachable via the OpenAI-compatible chat completions API and does not require authentication.
From the GitHub Advisory Database (GHSA-wcwg-c5fc-9vrc, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the absence of a maximum frame count check before decoding all comma-separated base64 JPEG frames into memory.
Impact
An unauthenticated attacker could crash the vLLM server by exhausting its memory with a single request, causing a denial of service.
What the attacker needed
No authentication required; access to the chat completions API
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A server accepts video data as a long text string and splits it into individual pictures (frames) to process. It does not check how many frames are sent, so someone can send a huge number of frames in one request. The server tries to load all of them into memory at once and runs out of memory, which crashes it.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.