この記事は英語で公開されています。
By UNST33R
vLLM CVE-2026-126397: the request-controlled max_patches DoS, explained for self-hosted inference teams
A CVSS 4.0 8.7 denial-of-service published to NVD on November 13 lets any client that can reach a vLLM chat-completions endpoint exhaust multimodal preprocessing workers with a request-controlled max_patches value. The full data flow, the fix-ahead-of-disclosure timeline, detection signatures, and the upgrade-plus-gateway response path.
On November 13, 2026, NVD published CVE-2026-126397: a remote, unauthenticated denial-of-service in vLLM's OpenAI-compatible multimodal path. Any client that can reach a chat-completions endpoint serving a Cohere2 Vision model can submit a small, valid image plus a large integer in mm_processor_kwargs.max_patches, and the server burns quadratic CPU in preprocessing before any inference-level protection sees the request. If you run a self-hosted vLLM frontend for red-team harnesses, internal tooling, or reduced-refusal serving, this is a patch-week item, and the interesting part is what it teaches about where request-controlled parameters actually execute.
The record at a glance
| Field | Detail |
|---|---|
| Identifier | CVE-2026-126397, published 2026-11-13, CWE-400 |
| Advisory | GHSA-9g3c-x747-c6wr, "Quadratic Cohere2 Vision preprocessing DoS via request-controlled max_patches", published 2026-10-27 |
| Affected | vLLM >= 0.10.1, < 0.31.0 (pip) |
| Fixed | v0.31.0, released 2026-10-05 |
| CVSS | 4.0 8.7 HIGH (secondary metric, credited to VulnCheck): AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H |
| GHSA severity label | Moderate |
| Impact | Availability only. No code execution, confidentiality, or integrity impact demonstrated |
| Prerequisite | The endpoint must serve a Cohere2 Vision model through the Python OpenAI-compatible frontend; the default server requires no API key |
The severity split is worth a sentence before anyone quotes it in a risk memo. GitHub labels the advisory Moderate because impact is availability-only and confined to a model-specific preprocessing path. The CVSS 4.0 calculator scores the same facts 8.7 because the attack is network-reachable, needs no privileges or user interaction, and takes down the whole serving process for everyone. Both readings are correct; use the vector, and read our leaderboard-numbers caveat habit of checking who computed the number before you repeat it.
The timeline: fix shipped before the advisory
Reconstructed from the GitHub advisory and release history:
| Date | Event |
|---|---|
| 2026-09-08 | Reporter re-confirms the data flow at then-main commit f6326f5 (originally audited at 7ca49fb) |
| 2026-10-05 | v0.31.0 ships with the fix |
| 2026-10-18 | v0.32.0 ships, also fixed |
| 2026-10-27 | GHSA-9g3c-x747-c6wr published by the reporter, jperezdealgaba |
| 2026-11-13 | NVD publishes CVE-2026-126397 with the CVSS 4.0 metric, followed by VulnCheck's advisory |
Two operational lessons hide in that ordering. First, anyone who tracks CVE feeds as their primary signal ran an exposed window of 39 days between the public advisory and the NVD record. Second, anyone who pinned an older vLLM for kernel or quantization compatibility reasons (a common pattern on reduced-refusal serving rigs) never got the fix at all, because pip install vllm only helps if you actually move. Teams running the CyberGate runtime steering stack are pinned to vLLM 0.32 and are already past the patched boundary, which is the right place to be this week.
The data flow, end to end
The advisory documents the chain at the audited revision, and it reads like a textbook case of a parameter that crossed a trust boundary:
ChatCompletionRequest.mm_processor_kwargsis declared as an unrestricteddict[str, Any]invllm/entrypoints/openai/chat_completion/protocol.py(lines 372-375 atf6326f5). The field exists so operators can pass legitimate Hugging Face processor overrides per request.OnlineRenderer.preprocess_chatcopies the dictionary into the multimodal preprocessing call without a server-side upper bound.- The Hugging Face processor for Cohere2 Vision models enumerates candidate tile aspect ratios with two nested loops whose bounds are both controlled by
max_patches. Two attacker-chosen loop bounds means quadratic CPU work: doubling the value roughly quadruples the cycles. - All of this happens in the preprocessing stage, before the request reaches the scheduler, token budgets, or any inference-level fairness mechanism. A tiny request body, a few hundred bytes, buys minutes of CPU.
- The processor keeps a small LRU cache of preprocessing results. Varying
max_patchesslightly across requests defeats the cache entirely, so every request pays full price.
The worker pool that handles multimodal preprocessing saturates, request latency climbs for everyone, and the endpoint stops serving. That is the whole attack. No malformed image, no exotic build flag, no unsafe runtime option, and by default no API key.
Why the usual defenses miss this class
Red-team veteran or not, it helps to name the bug class so your checklist generalizes: a request-controlled computational budget that executes ahead of your rate limiter's field of view. The same pattern has bitten inference stacks before, and it will again, because three common assumptions fail at once:
- Authentication does not help by default. The stock vLLM OpenAI-compatible server starts without an API key. Anyone with network reach to the port is an authorized client in the CVE's threat model.
- Rate limits that count requests see nothing wrong. One request per second with
max_patches: 200000is a trickle by request count and a furnace by CPU-seconds. - Payload-size inspection sees nothing wrong either. The request is small. The work it triggers is large. The amplification lives in the parameter, and parameters are rarely inspected.
The parallel on the local side of the house is the llama.cpp mmproj out-of-bounds write we covered in October: structured artifacts riding alongside the model get parsed with full process trust. There the artifact was a projector file; here the artifact is a JSON field. The shared lesson is that everything downstream of the request boundary deserves the same distrust as the prompt text itself.
Detection: what it looks like in your logs
If you operate an endpoint that serves any vision model on an affected vLLM, hunt for these signatures before assuming you were not touched:
| Signal | Where to look | Shape |
|---|---|---|
mm_processor_kwargs in request bodies | Reverse-proxy access logs (log body keys, redact values) | Any appearance on endpoints that serve vision models; legitimate use is rare |
| Tiny images, huge integers | Body-size vs CPU-time join | Sub-50KB payloads with multimodal preprocessing seconds long |
| Sweeping integer values | Body key histograms over time | The same key arriving with many distinct values (the LRU-cache-defeat pattern) |
| Worker pool exhaustion | vLLM metrics and logs | Multimodal preprocessing queue depth climbing while text-only traffic stays normal |
For authorized self-testing, the safe version of a probe is small and monotone: send your own endpoint a single small image with an increasing max_patches sequence (start at 100), measure preprocessing latency at each step, and stop at the first superlinear jump. You are measuring the curve shape, and one request per step is enough to see it. Any such testing stays inside your own infrastructure and authorization, per the acceptable-use policy; the point is to know your exposure before someone else demonstrates it.
The response: upgrade, then gate the parameter
| Layer | Action | Why it works |
|---|---|---|
| Engine | Upgrade to v0.31.0+; current line is v0.33 | Removes the unbounded forward entirely |
| Gateway | Strip or clamp mm_processor_kwargs at your reverse proxy for all routes that serve vision models | Kills the class for future parameters; allowlist beats blocklist here |
| Auth | Require an API key on every externally reachable vLLM port | Collapses the unauthenticated-attacker scenario to the authorized-client scenario |
| Limits | Per-key concurrency caps and CPU-adjacent rate limits (requests per second per key, plus body-key inspection) | Bounds the damage of any surviving budget-style parameter |
| Scope | If no workload needs vision, block image content parts at the gateway | The CVE is Cohere2 Vision-specific; unused modalities are pure attack surface |
That gateway row deserves emphasis. The next mm_processor_kwargs-shaped bug may be fixed next quarter; a parameter allowlist at the proxy is the control that keeps working in between. This is the same defense-in-depth posture we recommend folding into throughput benchmarking of reduced-refusal routes: measure your serving stack under adversarial parameters, with the same rigor you measure tokens per second, because an endpoint that benchmark-well but falls over to a twelve-line request body has no real throughput story.
Where this leaves the rest of the stack
Three follow-on points for teams building on OpenAI-compatible serving layers:
- Audit every passthrough field your frontend accepts.
mm_processor_kwargsisdict[str, Any]by design, and the design assumption was an operator-trusted origin. When the origin became remote clients, the type signature stayed. Grep your serving layer for the pattern; garak's OpenAI-compatible scanning setup is a decent harness for poking your own endpoint's parameter handling. - Check your agent harnesses' egress paths. If your red-team agents call self-hosted vLLM, a compromised or hostile target can influence request parameters through tool output in some harness designs. The multi-agent attack-surface primer covers the ingress side of that same trust problem.
- Keep a fallback leg that is patched by someone else. When your self-hosted endpoint goes down for an emergency upgrade, an engagement does not have to stop with it. A hosted reduced-refusal endpoint with stable model IDs, like the tiers on our pricing page, keeps the harness running while you re-serve the local leg. The DeepSeek abliterated API guide covers what that leg needs in terms of verification.
The patch is three weeks old and free. The parameter allowlist is an afternoon. The alternative is finding out from your monitoring, at 3 a.m., that a hundred-byte request body rented your whole preprocessing pipeline.