Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-114053

vLLM: Request-controlled mm_processor_kwargs.code_revision allows remote code execution
Back to all
CVE

CVE-2026-114053

vLLM: Request-controlled mm_processor_kwargs.code_revision allows remote code execution

Summary

An untrusted multimodal request can set mmprocessorkwargs.code_revision. When vLLM serves a model whose Hugging Face processor uses dynamic auto_map code and the operator enabled --trust-remote-code, this request value reaches AutoProcessor.from_pretrained and selects the Python revision imported by Transformers.

This lets a client replace the operator-reviewed processor module with code from another revision of the same model repository. The operator-selected model/data revision remains pinned; only the executed processor code changes.

Importing a Python module is arbitrary code execution in the vLLM API/renderer process. The PoC below demonstrates this with an import-time filesystem write. It is fully offline and does not require a GPU, model weights, or changes to a real Hub repository.

Affected snapshot

Affected configuration

The vulnerable path exists when all of the following are true:

  1. The served model's processor uses dynamic auto_map.AutoProcessor code.
  2. The operator enabled trustremotecode.
  3. The server can fetch the request-selected revision, or it is already cached.
  4. The attacker can create or otherwise control a revision in the served model repository. An example is a Hugging Face community pull-request ref when that repository permits them.
  5. A multimodal request reaches the processor path.

The default trustremotecode=False configuration is not affected.

Attack surface

mmprocessorkwargs is accepted directly by public request models:

/tokenize is particularly relevant because vLLM's authentication middleware guards only /v1, /v2, /inference, and /cohere prefixes:

Consequently, /tokenize remains unauthenticated even when --api-key is configured, unless an external proxy protects it. The vLLM Security Guide documents /tokenize as an unprotected endpoint.

Root cause

The request value follows this path:

  1. OnlineRenderer.preprocess_chat places request mmprocessorkwargs in prompt extras.
  2. Multimodal rendering forwards those kwargs into processor construction through MMProcessorInputs and processmultimodal_async.
  3. MultiModalConfig.mergemmprocessor_kwargs overlays inference values on startup values, so the request wins.
  4. cachedgetprocessorwithoutdynamic_kwargs filters only recognized processor-call keys. code_revision is retained as a processor-construction kwarg.
  5. cachedprocessorfrom_config pins revision and trustremotecode, but forwards the remaining kwargs without reserving code_revision.
  6. get_processor calls AutoProcessor.frompretrained(..., revision=revision, trustremotecode=trustremote_code, **kwargs).
  7. Transformers AutoProcessor.from_pretrained uses code_revision to retrieve and import the dynamic module through getclassfromdynamicmodule, then removes it before loading processor data. This is why code comes from the attacker revision while configuration/data remain operator-pinned.

Request-time processor arguments are not separated from processor-construction arguments, and code_revision is not reserved.

Suggested remediation

  1. Separate processor-construction arguments from untrusted processor-call arguments. An allowlist of supported request-time preprocessing controls is safest.
  2. Reject code_revision and other loader/source controls in request mmprocessorkwargs, and pass modelconfig.coderevision explicitly as the only permitted processor-code revision.
  3. Add a regression test proving a request cannot change the loaded module revision while operator pins remain effective.
  4. Protect /tokenize with the configured authentication policy as defense in depth.

Expected safe behavior is either a 4xx response for reserved request keys or silently ignoring them before processor construction. Rejection is preferable because it makes attempted misuse visible.

A patch for this was merged here: https://github.com/vllm-project/vllm/pull/58830

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.2
-
4.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
8.1
-
3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Related Resources

No items found.

References

https://github.com/vllm-project/vllm/security/advisories/GHSA-h3rc-6mm3-gc2m, https://github.com/vllm-project/vllm/pull/58830, https://github.com/vllm-project/vllm/commit/31f2e70cd3e403aaa471fb7fe3d33a7207aaf3cc, https://github.com/vllm-project/vllm, https://github.com/vllm-project/vllm/releases/tag/v0.31.0, https://nvd.nist.gov/vuln/detail/cve-2026-114053, https://www.vulncheck.com/advisories/vllm-0.7.3-before-0.31.0-rce-via-mm-processor-kwargs-code-revision

Severity

8.1

CVSS Score
0
10

Basic Information

Base CVSS
8.1
EPSS Probability
0.00462%
EPSS Percentile
0.40818%
Introduced Version
0.7.3,0.27.0,0.25.0,0.24.0,0.20.0,0.19.1,0.19.0,0.18.0,0.17.0,0.16.0,0.15.0,0.14.0,0.12.0,0.10.2,0.10.0,0
Fix Available
0.31.0,0.32.0-r0

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading