CVE-2026-22778 — vLLM has RCE in vllm — CVE Details
vLLM has RCE In Video Processing
What Should I Do?
Low-to-Moderate Risk
Exploitation probability is 15.08% in 30 days. Address in your next planned sprint.
Does your project use an affected vllm version?
Paste your requirements.txt to check it for CVE-2026-22778 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
A chain of vulnerabilities in vLLM allow Remote Code Execution (RCE):
- Info Leak - PIL error messages expose memory addresses, bypassing ASLR
- Heap Overflow - JPEG2000 decoder in OpenCV/FFmpeg has a heap overflow that lets us hijack code execution
Result: Send a malicious video URL to vLLM Completions or Invocations for a video model -> Execute arbitrary commands on the server
Completely default vLLM instance directly from pip, or docker, does not have authentication so "None" privileges are required, but even with non-default api-key enabled configuration this exploit is feasible through invocations route that allows payload to execute pre-auth.
Example heap target is provided, other heap targets can be exploited as well to achieve rce. Leak allows for simple ASLR bypass. Leak + heap overflow achieves RCE on versions prior to 0.14.1.
Deployments not serving a video model are not affected.
1. Vulnerability Overview
1.1 The Bug: JPEG2000 cdef Box Heap Overflow
The JPEG2000 decoder used by OpenCV (cv2) honors a cdef box that can remap color channels. When Y (luma) is mapped into the U (chroma) plane buffer, the decoder writes a large Y plane into the smaller U buffer, causing a heap overflow.
Root Cause
cdefallows channel remapping (e.g., Y→U, U→Y).- Y plane size:
W×H; U plane size:(W/2)×(H/2). - Overflow size =
W×H - (W/2×H/2)=0.75 × W × Hbytes.
Example (150×64)
- Y plane: 150×64 = 9,600 bytes
- U plane: 75×32 = 2,400 bytes
- Overflow: 7,200 bytes past the U buffer
1.2 Malicious cdef Box
Offset Size Field Value
0 4 Box Length 0x00000016 (22 bytes)
4 4 Box Type 'cdef'
8 2 N (channels) 0x0003
10 2 Channel 0 Cn 0x0000 (Y channel)
12 2 Channel 0 Typ 0x0000 (color)
14 2 Channel 0 Asoc 0x0002 (→ maps Y into U plane)
16 2 Channel 1 Cn 0x0001 (U channel)
18 2 Channel 1 Typ 0x0000 (color)
20 2 Channel 1 Asoc 0x0001 (→ maps U into Y plane)
22 2 Channel 2 Cn 0x0002 (V channel)
24 2 Channel 2 Typ 0x0000 (color)
26 2 Channel 2 Asoc 0x0003 (→ maps V plane)
Key control: Asoc=2 for channel 0 forces Y data into the U buffer, triggering the overflow.
Vulnerable Code Chain
1) Entry: vLLM accepts a remote video_url and downloads raw bytes
vLLM’s OpenAI-compatible API supports a video_url content part:
class VideoURL(TypedDict, total=False):
url: Required[str]
class ChatCompletionContentPartVideoParam(TypedDict, total=False):
video_url: Required[VideoURL]
type: Required[Literal["video_url"]]
Source: src/vllm/entrypoints/chat_utils.py.
When the URL is HTTP(S), vLLM downloads it as raw bytes and passes the bytes into the modality loader:
if url_spec.scheme.startswith("http"):
data = connection.get_bytes(url, timeout=fetch_timeout, allow_redirects=...)
return media_io.load_bytes(data)
Source: src/vllm/multimodal/utils.py (MediaConnector.load_from_url).
2) Decode: vLLM uses OpenCV (cv2) VideoCapture on an in-memory byte stream
The default video backend is OpenCV, and it constructs cv2.VideoCapture over a BytesIO buffer containing the downloaded bytes:
backend = cls().get_cv2_video_api()
cap = cv2.VideoCapture(BytesIO(data), backend, [])
if not cap.isOpened():
raise ValueError("Could not open video stream")
Source: src/vllm/multimodal/video.py (OpenCVVideoBackend.load_bytes).
The backend is selected from OpenCV’s stream-buffered backends registry:
import cv2.videoio_registry as vr
for backend in vr.getStreamBufferedBackends():
if vr.hasBackend(backend) and ...:
api_pref = backend
break
return api_pref
Source: src/vllm/multimodal/video.py (OpenCVVideoBackend.get_cv2_video_api).
Implication: vLLM is delegating container parsing + codec decode to OpenCV’s Video I/O stack (which, in typical builds, is backed by FFmpeg for MOV/MP4 and codecs like JPEG2000).
3) The actual overflow: Y (full-res) written into U (quarter-res)
When the decoder honors the remap and writes Y into the U-plane buffer, it writes too many bytes:
- Y plane bytes: (W \times H)
- U plane bytes: ((W/2) \times (H/2))
- Overflow bytes: (W \times H - (W/2 \times H/2) = 0.75 \times W \times H)
Concrete example tried (150×64):
- Y: (150 \times 64 = 9600) bytes
- U: (75 \times 32 = 2400) bytes
- Overflow: (9600 - 2400 = 7200) bytes past the end of the U allocation
This is a heap buffer overflow into whatever allocations follow the U-plane buffer in the decoder’s heap layout (structures, metadata, other buffers, etc.). The exact victims depend on build + runtime allocator layout.
The Exploit Chain
Vuln 1: PIL BytesIO Address Leak (ASLR Bypass)
When you send an invalid image to vLLM's multimodal endpoint, PIL throws an error like:
cannot identify image file <_io.BytesIO object at 0x7a95e299e750>
^^^^^^^^^^^^^^^^
LEAKED ADDRESS!
vLLM returns this error to the client, leaking a heap address. This address is ~10.33 GB before libc in memory. With this leak, we reduce ASLR from 4 billion guesses to ~8 guesses.
Vuln 2: JPEG2000 cdef Heap Overflow (RCE)
vLLM uses OpenCV (cv2) to decode videos. OpenCV bundles FFmpeg 5.1.x which has a heap overflow in the JPEG2000 decoder. The OpenCV is used for video decoding so if we build a video from JPEG2000 frames it will reach the vuln:
vLLM API Request to Completions/Invocation
↓
OpenCV cv2.VideoCapture()
↓
FFmpeg 5.1 (bundled in OpenCV)
↓
JPEG2000 decoder (libopenjp2)
↓
HEAP OVERFLOW via malicious "cdef" box
↓
Overwrite function pointer → RCE!
How the overflow works:
- JPEG2000 has a
cdefbox that remaps color channels - We remap Y (luma) into the U (chroma) buffer
- Y plane = 9,600 bytes, U plane = 2,400 bytes
- On small geometry like 150x64 pixel image we get 7,200 bytes overflow past the U buffer. We can grow that exponentially by making bigger images.
- This overwrites an
AVBufferstructure containing afree()function pointer. This could be any function pointer or other targets. - We set
free = system()andopaque = "command string" - When the buffer is freed →
system("our command")executes
vLLM Attack Surface
Affected Endpoints
Both multimodal endpoints are vulnerable:
POST /v1/chat/completions (with video_url in content)
POST /v1/invocations (with video_url in content)
Request Flow
1. Attacker sends request with video_url pointing to malicious .mov file
2. vLLM fetches the video from the URL
3. vLLM passes video bytes to cv2.VideoCapture()
4. OpenCV's bundled FFmpeg decodes JPEG2000 frames
5. Malicious cdef box triggers heap overflow
6. AVBuffer.free pointer overwritten with system()
7. When buffer is released → system("attacker command") executes
Versions Affected
| Component | Version | Notes |
|---|---|---|
| vLLM | >= 0.8.3, < 0.14.1 | Default config vulnerable when serving a video model |
| OpenCV (cv2) | 4.x with FFmpeg bundle | Bundled FFmpeg is vulnerable |
| FFmpeg | 5.1.x (bundled) | JPEG2000 cdef overflow |
| libopenjp2 | 2.x | Honors malicious cdef box |
Fixes
Advisory Timeline
- First published February 2, 2026 (298 days ago).
- Last revised September 10, 2026 — 219 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "vllm>=0.14.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| vllm PyPI · Affected: 0.10.0, 0.10.1, 0.10.1.1, 0.10.2 (+14 more) | 0.14.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-122
- CWE-209
- CWE-532
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/vllm-project/vllm/security/advisories/GHSA-4r2x-xpjr-7cvvWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-22778ADVISORY
- https://github.com/vllm-project/vllm/pull/32319WEB
- https://github.com/vllm-project/vllm/pull/31987WEB
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22778.jsonWEB
- https://pypi.org/project/vllmWEB
- https://github.com/vllm-project/vllm/releases/tag/v0.14.1WEB
- https://github.com/vllm-project/vllmPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2026-565.yamlWEB
- https://github.com/advisories/GHSA-4r2x-xpjr-7cvvADVISORY
- https://bugzilla.redhat.com/show_bug.cgi?id=2436113WEB
- https://access.redhat.com/security/cve/CVE-2026-22778WEB
- https://access.redhat.com/errata/RHSA-2026:3782WEB
- https://access.redhat.com/errata/RHSA-2026:3713WEB
- https://access.redhat.com/errata/RHSA-2026:3462WEB
- https://access.redhat.com/errata/RHSA-2026:3461WEB
- https://access.redhat.com/errata/RHSA-2026:30089WEB
- https://access.redhat.com/errata/RHSA-2026:30088WEB
- https://access.redhat.com/errata/RHSA-2026:30087WEB
- https://access.redhat.com/errata/RHSA-2026:19712WEB
Frequently Asked Questions
- What is CVE-2026-22778?
- vLLM has RCE In Video Processing. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-22778?
- CVE-2026-22778 affects vllm. It has a 15.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-22778 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 97.4% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2024-11041CRITICAL
vLLM Deserialization of Untrusted Data vulnerability
- CVE-2025-47277CRITICAL
vLLM Allows Remote Code Execution via PyNcclPipe Communication Service
- CVE-2026-115915CRITICAL
- CVE-2024-11041CRITICAL
vLLM Deserialization of Untrusted Data vulnerability
- CVE-2024-9053CRITICAL
vLLM allows Remote Code Execution by Pickle Deserialization via AsyncEngineRPCServer() RPC server entrypoints
- CVE-2025-32444CRITICAL
vLLM Vulnerable to Remote Code Execution via Mooncake Integration
- CVE-2025-47277CRITICAL
vLLM Allows Remote Code Execution via PyNcclPipe Communication Service
- CVE-2024-9052CRITICAL
vLLM deserialization vulnerability in vllm.distributed.GroupCoordinator.recv_object