Skip to main content
Vulnerability Database/CVE-2026-109227

CVE-2026-109227: SGLang Qwen-VL DOS Vulnerability

CVE-2026-109227 is a denial of service vulnerability in SGLang that allows attackers to exhaust memory through high-resolution video submissions. This article covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109227 Overview

CVE-2026-109227 is an unbounded memory allocation vulnerability in SGLang through version 0.5.21. The flaw resides in the preprocess_video function within qwen_vl.py, which decodes video frames at full source resolution before applying max_pixels limits. Remote unauthenticated attackers can submit high-resolution videos to the /v1/chat/completions endpoint on Qwen-VL deployments. Concurrent requests exhaust worker memory and cause denial of service on the inference server. The vulnerability is categorized under [CWE-770: Allocation of Resources Without Limits or Throttling].

Critical Impact

Unauthenticated remote attackers can crash Qwen-VL inference workers by submitting high-resolution video payloads, resulting in denial of service for AI inference endpoints.

Affected Products

  • SGLang versions through 0.5.21
  • Qwen-VL deployments running on SGLang
  • The preprocess_video function in python/sglang/srt/multimodal/processors/qwen_vl.py

Discovery Timeline

  • 2026-10-12 - CVE-2026-109227 published to NVD
  • 2026-10-12 - Last updated in NVD database

Technical Details for CVE-2026-109227

Vulnerability Analysis

SGLang is a serving framework for large language models and vision-language models. The preprocess_video function in qwen_vl.py handles video inputs for Qwen-VL multimodal inference. The function decodes incoming video frames at their original source resolution before enforcing the configured max_pixels ceiling.

This ordering flaw means that even if operators configure resolution limits, the decode step occurs first and allocates memory proportional to the attacker-controlled input dimensions. A single high-resolution video can consume multiple gigabytes of RAM during decoding. Concurrent requests multiply the memory pressure across worker processes.

Root Cause

The root cause is improper sequencing of input validation and resource allocation. The max_pixels safeguard is applied after full-resolution frame decoding instead of before. This violates the principle of validating untrusted input before committing resources, which is the core issue described by [CWE-770].

Attack Vector

Exploitation requires only network access to a public or internal Qwen-VL inference endpoint. No authentication, user interaction, or privileges are needed. An attacker crafts a video payload with large frame dimensions and submits it to /v1/chat/completions. Issuing multiple concurrent requests exhausts worker memory and triggers out-of-memory conditions. See the VulnCheck Security Advisory and the vulnerable code reference for technical specifics.

// No verified exploit code available.
// Attack pattern: HTTP POST to /v1/chat/completions with a Qwen-VL
// multimodal request containing a high-resolution video URL or payload,
// repeated concurrently to exhaust worker memory.

Detection Methods for CVE-2026-109227

Indicators of Compromise

  • Repeated POST requests to /v1/chat/completions carrying video content with unusually large frame dimensions or file sizes.
  • SGLang worker processes terminating with out-of-memory errors or Linux OOM-killer events.
  • Sudden spikes in resident memory usage on inference nodes coinciding with Qwen-VL multimodal traffic.
  • Elevated request latency or 5xx responses from the inference API during video preprocessing.

Detection Strategies

  • Inspect reverse proxy and API gateway logs for /v1/chat/completions requests containing video payloads above operator-defined size thresholds.
  • Correlate container restart events with Qwen-VL request bursts to identify DoS attempts.
  • Monitor preprocess_video execution time and memory allocation telemetry if instrumentation is available.

Monitoring Recommendations

  • Deploy per-process memory limits and alert on worker crashes caused by OOM conditions.
  • Track request rate and payload size distributions on the inference endpoint per source IP.
  • Alert on concurrent high-resolution video requests from a single client or small set of clients.

How to Mitigate CVE-2026-109227

Immediate Actions Required

  • Upgrade SGLang to a version later than 0.5.21 once a patched release is available from the SGLang project.
  • Place Qwen-VL inference endpoints behind authenticated reverse proxies and restrict network exposure.
  • Enforce request size limits at the API gateway to reject oversized video payloads before they reach the worker.
  • Apply strict per-worker memory limits using container cgroups or systemd resource controls to contain the blast radius.

Patch Information

At publication, the vulnerability affects SGLang through 0.5.21. Track remediation progress and patch availability through the SGLang issue tracker entry and monitor the project repository for releases that reorder validation before decoding.

Workarounds

  • Restrict the /v1/chat/completions endpoint to trusted networks or authenticated clients using an upstream proxy.
  • Enforce maximum upload size and video resolution limits at a web application firewall before requests reach SGLang.
  • Rate-limit multimodal requests per source identity to prevent concurrent memory exhaustion.
  • Disable video input support for Qwen-VL deployments where this capability is not required.
bash
# Example nginx limits in front of an SGLang Qwen-VL endpoint
# Reject oversized bodies and throttle concurrent multimodal requests
client_max_body_size 10m;
limit_req_zone $binary_remote_addr zone=sglang_mm:10m rate=5r/m;

location /v1/chat/completions {
    limit_req zone=sglang_mm burst=2 nodelay;
    proxy_pass http://sglang_upstream;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.