NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · vLLM

CVE-2026-34755: vLLM: Denial of Service via Unbounded Frame Count in video/jpeg Base64 Processing

mediumCVSS 3.1 6.5GHSA-pq5c-rjhq-qp7p

vLLM 0.7.0 up to but not including 0.19.0 can be crashed by one API request. VideoMediaIO.load_base64() accepts video/jpeg data URLs with no limit on frame count, so thousands of tiny base64 JPEG frames decode into gigabytes of memory and the server dies with an out-of-memory error. Upgrade to vLLM 0.19.0.

Published Apr 3, 2026 · Updated Aug 25, 2026 · Analysis Oct 30, 2026

What an attacker can do

In vllm/multimodal/media/video.py, load_base64() handles the vLLM-specific video/jpeg type by running data.split(",") and decoding every piece as a JPEG. The num_frames limit (default 32) applies only on the load_bytes() path, so this path skips it. The connector splits the data URL on the first comma only, so all later commas reach the unbounded split.

The attack is a single POST to /v1/chat/completions with a video_url whose data URL is data:video/jpeg;base64, followed by thousands of comma-separated frames. The payload stays small, around 100 KB for 5000 frames. Each 640x480 RGB frame decodes to about 921 KB, so 5000 frames take about 4.6 GB, and np.stack() makes another copy on top. The process runs out of memory and exits, taking down inference for every user of that server.

The CVSS vector shows low privileges required, which in practice means anyone who can call the API, such as a holder of an API key. The result is availability loss only, with no code execution or data exposure. Servers that serve video-capable multimodal models behind a shared endpoint are the exposed ones.

Who is affected

vLLM from 0.7.0 up to but not including 0.19.0, as published for the pip package. The code path is reachable on servers that accept video input on the OpenAI-compatible chat endpoint.

Check your version:

pip show vllm

For container deployments, check the image tag you run and the vllm version inside it. Distribution builds such as Red Hat's carry their own backports; see their errata for those.

vllm

Ecosystem
PyPI
Affected
>= 0.7.0, < 0.19.0
Fixed in
0.19.0
Check
pip show vllm

How to fix it

Upgrade to vLLM 0.19.0.

pip install -U "vllm>=0.19.0"

The fix, in pull request 38636, splits the comma-separated data with a maximum split count tied to num_frames and keeps only that many frames. A later commit in the same pull request clamps request-level media_io_kwargs so a caller cannot override the engine's num_frames with -1 or a huge value. The sources give no workaround for older versions. Restricting who can reach the API, or limiting request body size at a proxy, reduces exposure but is not vendor guidance.

How to tell if you were hit

Look for chat completion requests with unusually large bodies that contain data:video/jpeg;base64, followed by many commas. Other signs are the vLLM process killed by the kernel OOM killer (check dmesg or journalctl for out-of-memory kills), container restarts, and memory that spikes during a single request. Correlate the crash time with the API key or source address of the request that was in flight. If you log request metadata at a gateway, search it for video_url parts using the video/jpeg type.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The VideoMediaIO.load_base64() method at vllm/multimodal/media/video.py:51-62 splits video/jpeg data URLs by comma to extract individual JPEG frames, but does not enforce a frame count limit. The num_frames parameter (default: 32), which is enforced by the load_bytes() code path at line 47-48, is completely bypassed in the video/jpeg base64 path. An attacker can send a single API request containing thousands of comma-separated base64-encoded JPEG frames, causing the server to decode all frames into memory and crash with OOM.

Details

Vulnerable code

# video.py:51-62
def load_base64(self, media_type: str, data: str) -> tuple[npt.NDArray, dict[str, Any]]:
    if media_type.lower() == "video/jpeg":
        load_frame = partial(self.image_io.load_base64, "image/jpeg")
        return np.stack(
            [np.asarray(load_frame(frame_data)) for frame_data in data.split(",")]
            #                                                       ^^^^^^^^^^
            # Unbounded split — no frame count limit
        ), {}
    return self.load_bytes(base64.b64decode(data))

The load_bytes() path (line 47-48) properly delegates to a video loader that respects self.num_frames (default 32). The load_base64("video/jpeg", ...) path bypasses this limit entirely — data.split(",") produces an unbounded list and every frame is decoded into a numpy array.

video/jpeg is part of vLLM's public API

video/jpeg is a vLLM-specific MIME type, not IANA-registered. However it is part of the public API surface:

  • encode_video_url() at vllm/multimodal/utils.py:96-108 generates data:video/jpeg;base64,... URLs
  • Official test suites at tests/entrypoints/openai/test_video.py:62 and tests/entrypoints/test_chat_utils.py:153 both use this format

Memory amplification

Each JPEG frame decodes to a full numpy array. For 640x480 RGB images, each frame is ~921 KB decoded. 5000 frames = ~4.6 GB. np.stack() then creates an additional copy. The compressed JPEG payload is small (~100 KB for 5000 frames) but decompresses to gigabytes.

Data flow

POST /v1/chat/completions
  → chat_utils.py:1434   video_url type → mm_parser.parse_video()
  → chat_utils.py:872    parse_video() → self._connector.fetch_video()
  → connector.py:295     fetch_video() → load_from_url(url, self.video_io)
  → connector.py:91      _load_data_url(): url_spec.path.split(",", 1)
                          → media_type = "video/jpeg"
                          → data = "<frame1>,<frame2>,...,<frame10000>"
  → connector.py:100     media_io.load_base64("video/jpeg", data)
  → video.py:54          data.split(",")  ← UNBOUNDED
  → video.py:55-57       all frames decoded into numpy arrays
  → video.py:56          np.stack([...])  ← massive combined array → OOM

connector.py:91 uses split(",", 1) which splits on only the first comma. All remaining commas stay in data and are later split by video.py:54.

Comparison with existing protections

| Code Path | Frame Limit | File |
| `load_bytes()` (binary video) | Yes — `num_frames` (default 32) | video.py:46-49 |
| `load_base64("video/jpeg", ...)` | No — unlimited `data.split(",")` | video.py:51-62 |

Credited to SEORY0, russellb, jperezdealgaba, DarkLight1337, Isotr0py.

Questions

Is vLLM 0.18.x affected by CVE-2026-34755?

Yes. Every release from 0.7.0 up to but not including 0.19.0 is in the vulnerable range. The patched version is 0.19.0.

Does the attacker need to be authenticated?

The CVSS vector says low privileges are required. If your vLLM endpoint has no API key, any network client that can reach it can send the request. If it has one, any key holder can.

Is it exploited in the wild?

No source I read says so, and the entry has no CISA KEV flag. The EPSS score is about 0.5%.

Why is video/jpeg input special?

video/jpeg is a vLLM-specific type, not an IANA-registered one, but it is part of the public API. Its base64 path takes a list of frames and never applied the num_frames limit that the binary video path enforces.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More vLLM vulnerabilities

All vLLM entries