vLLM can run untrusted code when processing multimodal requests
What this means
An attacker can run any code on the machine running vLLM if the server trusts remote code and processes images or other media. This could lead to data theft, system compromise, or denial of service. The attacker does not need access to the model weights or GPU.
SecurityElites Manager Brief: the decision in one minute
vLLM has a code execution flaw in how it handles requests with media files. If your team enabled `trust_remote_code` to use certain AI models, an attacker can run code on your server by sending a specially crafted request with an image or other media. This is high risk.
| SecurityElites Fix-First Score | 43 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or ML infrastructure team. |
| Likely effort | About 15 minutes per server: check your settings, upgrade vLLM, and restart. This estimate assumes you know which servers run vLLM and can restart them. It could take longer if you have many servers or if vLLM is tightly integrated with other services. |
Questions to ask your team or supplier
- Do we use `trust_remote_code=True` on any vLLM server, and if so, which models require it?
- Are our vLLM endpoints accessible from the public internet or only from trusted internal networks?
- Do we monitor vLLM logs for suspicious requests with `mm_processor_kwargs` or unexpected code revisions?
Message you can forward to the owning team
Security notice: vLLM can run untrusted code when processing multimodal requests (CVE-2026-114053)
Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to vllm 0.31.0 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-114053-vllm-can-run-untrusted-code-when-processing-multimodal-requests/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01056What is at stake in your AI setup
- Model processor code: an attacker can replace the reviewed processor with malicious code from another repository revision.
- Chat history and prompts: code execution allows reading request and response logs.
- Hugging Face API keys: if stored on the vLLM server, they can be stolen to access or modify models.
- Compute resources: the attacker can use the GPU and CPU for their own workloads or cause denial of service.
Who is exposed
- Teams running vLLM 0.7.3 to 0.30.x with `trust_remote_code` enabled.
- Servers that accept requests with images or multimodal content (ChatCompletion and Tokenize endpoints).
- Setups that serve models from Hugging Face that use dynamic processor code.
- Teams that allowed community pull requests to their Hugging Face model repositories.
- Teams running vLLM with `trust_remote_code=False` are not affected.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| vllm PyPI | 0.7.3 up to, but not including, 0.31.0 | 0.31.0 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | No known attacks and no public attack code when CISA last reviewed it |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Hard. It depends on conditions the attacker does not control |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Kind of coding mistake
- CWE-829
- CWE-94: code can be injected
If you cannot upgrade today
- If you cannot upgrade immediately, set `trust_remote_code=False` in your vLLM configuration. This disables the vulnerable code path. You may not be able to use models that require trusted remote code.
- Restrict network access to vLLM endpoints to trusted internal users only. This reduces the attack surface but does not fully protect against insider threats.
Signs it may already have been used against you
- Check vLLM API logs for requests to `/tokenize` and `/chat/completions` endpoints that include `mm_processor_kwargs` with a `code_revision` field, especially from external sources.
- Look for unexpected Python module imports in vLLM process logs or unusual file writes in the working directory during request processing.
- Review Hugging Face model repository commit history and pull requests for suspicious new revisions created around the time vLLM was running with `trust_remote_code` enabled.
- Check the vLLM cache directory (usually `.cache/huggingface`) for processor code from unexpected revisions of the served model.
Log searches to start from
Requests with code_revision in multimodal processor arguments (adapt field names to your logs)Splunk
source="vllm_logs" (endpoint="/tokenize" OR endpoint="/chat/completions") mm_processor_kwargs="*code_revision*"Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find all vLLM serversList every machine running vLLM. Check your deployment tools (Kubernetes, Docker, cloud console) or ask your infrastructure team. Note the version of each server.
- Check for trust_remote_code settingOn each vLLM server, search the startup command and configuration files for `trust_remote_code`. If you see `--trust-remote-code` or `trust_remote_code: true`, that server is at risk. If you see `trust_remote_code=False` or the flag is not set, that server is safe.
- Check which models are servedFor each at-risk server, note which model is loaded. Check the Hugging Face model card to see if the processor uses `auto_map`. If the card does not mention `auto_map` or dynamic code, that server has lower risk.
- Assess your exposureIf your servers are only accessible to trusted internal users and do not accept requests from the internet, your risk is lower but not zero. If the vLLM endpoint is public or accessible to untrusted users, your risk is high.
- Upgrade vLLM to 0.31.0 or laterOn each at-risk server, upgrade vLLM to version 0.31.0 or later. Use your package manager (pip, conda, or container image) to install the fixed version. Restart vLLM after the upgrade.
- Restart vLLMRestart each vLLM process or container. Wait for it to load the model and reach a ready state before moving to the next server.
- Verify the fixRun `pip show vllm` on each server and confirm the version is 0.31.0 or later. Send a test request with an image to each endpoint and confirm it works normally.
- Review access if the flaw was exploitedIf your servers were exposed before the upgrade, check logs for requests to the `/tokenize` and `/chat/completions` endpoints that came from outside your trusted network. Look for requests that set `code_revision` in `mm_processor_kwargs`. If you find suspicious activity, isolate the affected machines and involve your security team.
How to confirm it is fixed: Run `python -c "import vllm; print(vllm.__version__)"` on each vLLM server and confirm the version is 0.31.0 or later, then send a test request with an image to the `/chat/completions` endpoint and confirm it completes without errors.
SecurityElites Quick Fixes: copy and paste
Upgrade vllm with pipupgrade
pip install --upgrade "vllm>=0.31.0"
pip show vllm | grep VersionPin it in requirements.txtupgrade
vllm>=0.31.0Check installed vLLM versionfor this issue
python -c "import vllm; print(vllm.__version__)"Search startup command for trust_remote_codefor this issue
ps aux | grep vllm | grep -i trust_remote_codeRun the service in a locked-down containergeneral hardening
docker run --read-only --cap-drop ALL \
--security-opt no-new-privileges --user 1000:1000 \
-p 127.0.0.1:8080:8080 YOUR_IMAGETest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-114053) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - vllm (PyPI): must be 0.31.0 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## vLLM can run untrusted code when processing multimodal requests (CVE-2026-114053)
**Severity:** High | **SE Fix-First Score:** 43/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-01056 https://securityelites.com/ai-vulnerabilities/cve-2026-114053-vllm-can-run-untrusted-code-when-processing-multimodal-requests/
### Why this matters
An attacker can run any code on the machine running vLLM if the server trusts remote code and processes images or other media. This could lead to data theft, system compromise, or denial of service. The attacker does not need access to the model weights or GPU.
### What to do
1. Find all vLLM servers: List every machine running vLLM. Check your deployment tools (Kubernetes, Docker, cloud console) or ask your infrastructure team. Note the version of each server.
2. Check for trust_remote_code setting: On each vLLM server, search the startup command and configuration files for `trust_remote_code`. If you see `--trust-remote-code` or `trust_remote_code: true`, that server is at risk. If you see `trust_remote_code=False` or the flag is not set, that server is safe.
3. Check which models are served: For each at-risk server, note which model is loaded. Check the Hugging Face model card to see if the processor uses `auto_map`. If the card does not mention `auto_map` or dynamic code, that server has lower risk.
4. Assess your exposure: If your servers are only accessible to trusted internal users and do not accept requests from the internet, your risk is lower but not zero. If the vLLM endpoint is public or accessible to untrusted users, your risk is high.
5. Upgrade vLLM to 0.31.0 or later: On each at-risk server, upgrade vLLM to version 0.31.0 or later. Use your package manager (pip, conda, or container image) to install the fixed version. Restart vLLM after the upgrade.
6. Restart vLLM: Restart each vLLM process or container. Wait for it to load the model and reach a ready state before moving to the next server.
7. Verify the fix: Run `pip show vllm` on each server and confirm the version is 0.31.0 or later. Send a test request with an image to each endpoint and confirm it works normally.
8. Review access if the flaw was exploited: If your servers were exposed before the upgrade, check logs for requests to the `/tokenize` and `/chat/completions` endpoints that came from outside your trusted network. Look for requests that set `code_revision` in `mm_processor_kwargs`. If you find suspicious activity, isolate the affected machines and involve your security team.
### Done when
- [ ] vllm is at 0.31.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `python -c "import vllm; print(vllm.__version__)"` on each vLLM server and confirm the version is 0.31.0 or later, then send a test request with an image to the `/chat/completions` endpoint and confirm it completes without errors.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- vLLM API lets any client crash the server with huge image requests High · CVE-2026-114055
The same kind of mistake in other AI tools
- litellm proxy can be forced to run commands by an internal user High · CVE-2026-114612
Change history
- 27 Oct 2026: Made public
- 1 Dec 2026: Published
Official record
## SummaryAn untrusted multimodal request can set `mm_processor_kwargs.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- Repository: [`vllm-project/vllm`](https://github.com/vllm-project/vllm) - Verified commit: [`570735520942b6428ae98f1eb442c6d88adae55e`](https://github.com/vllm-project/vllm/commit/570735520942b6428ae98f1eb442c6d88adae55e) - Verified with Transformers 5.15.0 and 5.16.1 - Affected release range has not been bisected## Affected configurationThe 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 `trust_remote_code`. 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](https://huggingface.co/docs/hub/en/repositories-pull-requests-discussions#where-in-the-git-repo-are-changes-stored) when that repository permits them. 5. A multimodal request reaches the processor path.The default `trust_remote_code=False` configuration is not affected.## Attack surface`mm_processor_kwargs` is accepted directly by public request models:- [`TokenizeChatRequest.mm_processor_kwargs`](https://github.com/vllm-project/vllm/blob/570735520942b6428ae98f1eb442c6d88adae55e/vllm/entrypoints/serve/tokenize/protocol.py#L111-L114) - [`ChatCompletionRequest.mm_processor_kwargs`](https://github.com/vllm-project/vllm/blob/570735520942b6428ae98f1eb442c6d88adae55e/vllm/entrypoints/openai/chat_completion/protocol.py#L372-L375)`/tokenize` is particularly relevant because vLLM's authentication middleware guards only `/v1`, `/v2`, `/inference`, and `/cohere` prefixes:- [`AuthenticationMiddleware`](https://github.com/vllm-project/vllm/blob/570735520942b6428ae98f1eb442c6d88adae55e/vllm/entrypoints/serve/middleware/authenticate.py#L11-L62)Consequently, `/tokenize` remains unauthenticated even when `--api-key` is configured, unless an external proxy protects it. The vLLM [Security Guide](https://docs.vllm.ai/en/latest/usage/security/#unprotected-endpoints-no-api-key-required) documents `/tokenize` as an unprotected endpoint.## Root causeThe request value follows this path:1. [`OnlineRenderer.preprocess_chat`](https://github.com/vllm-project/vllm/blob/570735520942b6428ae98f1eb442c6d88adae55e/vllm/renderers/online_renderer.py#L406-L435) places request `mm_processor_kwargs` in prompt extras. 2. Multimodal rendering forwards those kwargs into processor construction through [`MMProcessorInputs`](https://github.com/vllm-project/vllm/blob/570735520942b6428ae98f1eb442c6d88adae55e/vllm/renderers/base.py#L751-L760) and [`_process_multimodal_async`](https://github.com/vllm-project/vllm/blob/570735520942b6428ae98f1eb442c6d88adae55e/vllm/renderers/base.py#L831-L847). 3. [`MultiModalConfig.merge_mm_processor_kwargs`](https://github.com/vllm-project/vllm/blob/570735520942b6428ae98f1eb442c6d88adae55e/vllm/config/multimodal.py#L506-L518) overlays inference values on startup values, so the request wins. 4. [`cached_get_processor_without_dynamic_kwargs`](https://github.com/vllm-project/vllm/blob/570735520942b6428ae98f1eb442c6d88adae55e/vllm/transformers_util
Weakness type: CWE-829, CWE-94
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-114053For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 27 Oct 2026. Read the vendor advisory before changing a production system.