CVE-2026-27893: vLLM has Hardcoded Trust Override in Model Files Enables RCE Despite Explicit User Opt-Out
vLLM 0.10.1 up to (not including) 0.18.0 hardcodes trust_remote_code=True in two model files, nemotron_vl.py and kimi_k25.py. A malicious model repository can run Python code on the server even when the operator started vLLM with --trust-remote-code=False. Upgrade vllm to 0.18.0.
Published Mar 27, 2026 · Updated Jul 17, 2026 · Analysis Oct 31, 2026
What an attacker can do
The --trust-remote-code=False flag is the control that stops Hugging Face model repositories from executing their own Python code at load time. Two vLLM model implementations ignored it when loading sub-components. In vllm/model_executor/models/nemotron_vl.py, AutoModel.from_config(config.vision_config, trust_remote_code=True) forced trust for the vision model. In kimi_k25.py, cached_get_image_processor(..., trust_remote_code=True) did the same for the image processor.
So if a server loads a Nemotron VL or Kimi K2.5 style model from a repository the attacker controls or has tampered with, code in that repository runs with the privileges of the vLLM process. The attacker does not need network access to the server. They need the operator to load the model, which is why the CVSS vector has user interaction required, scored 8.8. Code execution on an inference host exposes model weights, API keys, environment secrets and any GPU cluster credentials.
The flaw is a protection mechanism failure (CWE-693). It survived the earlier auto_map fixes for CVE-2025-66448 and CVE-2026-22807, because those patched different code paths.
Who is affected
vllm from 0.10.1 up to but not including 0.18.0. The exposed code paths are the Nemotron VL and Kimi K2.5 model implementations, so deployments that serve other architectures from trusted repositories carry less risk, though upgrading is simple. Check the installed version:
pip show vllmvllm
- Ecosystem
- PyPI
- Affected
- >= 0.10.1, < 0.18.0
- Fixed in
- 0.18.0
- Check
pip show vllm
How to fix it
Upgrade to vllm 0.18.0:
pip install --upgrade "vllm>=0.18.0"Pull request 36192 (commit 00bd08edeee5) replaced the hardcoded True with the trust_remote_code value from the user's model_config, so the flag is honored. Red Hat has published errata for its own builds; see the Red Hat bulletin for those. As a stopgap, load models only from repositories you control and pin the revision.
How to tell if you were hit
Check which model architectures your vLLM servers load, and look for Nemotron VL or Kimi K2.5 models from third-party or unreviewed Hugging Face repositories. Inspect the Hugging Face cache for downloaded .py files from those repositories. Watch the inference host for unexpected child processes or outbound connections after a model load. Beam can record agent-launched shell commands, which is useful if an agent pulled the model.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Two model implementation files hardcode trust_remote_code=True when loading sub-components, bypassing the user's explicit --trust-remote-code=False security opt-out. This enables remote code execution via malicious model repositories even when the user has explicitly disabled remote code trust.
Details
Affected files (latest main branch):
vllm/model_executor/models/nemotron_vl.py:430```python vision_model = AutoModel.from_config(config.vision_config, trust_remote_code=True)
2. vllm/model_executor/models/kimi_k25.py:177
cached_get_image_processor(self.ctx.model_config.model, trust_remote_code=True)
Both pass a hardcoded trust_remote_code=True to HuggingFace API calls, overriding the user's global --trust-remote-code=False setting.
Relation to prior CVEs:
- CVE-2025-66448 fixed auto_map resolution in vllm/transformers_utils/config.py (config loading path)
- CVE-2026-22807 fixed broader auto_map at startup
- Both fixes are present in the current code. These hardcoded instances in model files survived both patches — different code paths.
### Impact
Remote code execution. An attacker can craft a malicious model repository that executes arbitrary Python code when loaded by vLLM, even when the user has explicitly set --trust-remote-code=False. This undermines the security guarantee
that trust_remote_code=False is intended to provide.
Remediation: Replace hardcoded trust_remote_code=True with self.config.model_config.trust_remote_code in both files. Raise a clear error if the model component requires remote code but the user hasn't opted in.Credited to Wernerina, russellb.
Questions
- Does --trust-remote-code=False protect me on vLLM before 0.18.0?
Not for these two models. Nemotron VL and Kimi K2.5 loaded sub-components with trust_remote_code=True regardless of the flag.
- Is this the same as CVE-2025-66448 or CVE-2026-22807?
No. Those fixed auto_map resolution in config loading. This advisory covers hardcoded values in model files, which survived both fixes.
- Does an attacker need to reach my vLLM API?
No. The attacker needs a malicious model repository that you load. User interaction is required in the CVSS vector.
References
Read for this analysis:
- https://github.com/vllm-project/vllm/security/advisories/GHSA-7972-pg2x-xr59
- https://github.com/vllm-project/vllm/pull/36192
- https://github.com/advisories/GHSA-7972-pg2x-xr59
- https://nvd.nist.gov/vuln/detail/CVE-2026-27893
- https://github.com/vllm-project/vllm/commit/00bd08edeee5dd4d4c13277c0114a464011acf72
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27893.json
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2026-2297.yaml
- https://bugzilla.redhat.com/show_bug.cgi?id=2452055
- https://access.redhat.com/security/cve/CVE-2026-27893
- https://access.redhat.com/errata/RHSA-2026:8748
- https://access.redhat.com/errata/RHSA-2026:8747
- https://access.redhat.com/errata/RHSA-2026:8746
- https://access.redhat.com/errata/RHSA-2026:37275
- https://access.redhat.com/errata/RHSA-2026:24977
- https://access.redhat.com/errata/RHSA-2026:19725
- https://access.redhat.com/errata/RHSA-2026:19724
- https://access.redhat.com/errata/RHSA-2026:19712
- https://access.redhat.com/errata/RHSA-2026:10141
- https://access.redhat.com/errata/RHSA-2026:10140
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More vLLM vulnerabilities
All vLLM entriesCVE-2026-115911
vLLM: DoS via unbounded chat_template Jinja2 rendering exhausts the renderer thread pool
medium6.5Oct 28, 2026CVE-2026-115912
vLLM: Public multimodal SHM handle forgery reaches worker-side `pickle.loads()` with insecure serialization disabled
high7.5Oct 28, 2026CVE-2026-115913
vLLM: Phi-4 multimodal audio encoder materializes and retains full attention matrices: a single max-length audio OOM-crashes the vLLM engine
medium6.5Oct 28, 2026CVE-2026-115914
vLLM DeepSeek-OCR image processing vulnerable to denial of service
medium6.5Oct 28, 2026CVE-2026-115915
vLLM: Untrusted EPS inputs can trigger denial of service or Ghostscript RCE
high8.1Oct 28, 2026CVE-2026-115916
vLLM: Out-of-vocabulary prompt token id passes input validation and triggers a CUDA device-side assert (engine crash / DoS)
medium6.5Oct 28, 2026
