NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · vLLM

CVE-2026-27893: vLLM has Hardcoded Trust Override in Model Files Enables RCE Despite Explicit User Opt-Out

highCVSS 3.1 8.8GHSA-7972-pg2x-xr59

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 vllm

vllm

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):

  1. 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

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 entries