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

CVE-2025-66448: vLLM vulnerable to remote code execution via transformers_utils/get_config

highCVSS 3.1 7.1GHSA-8fr4-5q9j-m8gm

vLLM before 0.11.1 can run attacker-supplied Python while loading a model config, even with `trust_remote_code=False`. The `Nemotron_Nano_VL_Config` class follows an `auto_map` entry to a second repository and executes its code. Anyone who loads a malicious model on a vLLM host is exposed. Upgrade to 0.11.1.

Published Dec 2, 2025 · Updated Jul 17, 2026 · Analysis Nov 1, 2026

What an attacker can do

In vllm.transformers_utils.config, the config class Nemotron_Nano_VL_Config reads a vision_config that holds an auto_map entry. It resolves AutoConfig from that entry with get_class_from_dynamic_module(...) and instantiates the class straight away. That call can fetch and import Python from the Hugging Face repo named in the mapping. The trust_remote_code setting is never checked on this path.

An attacker therefore publishes two repos. The front one looks harmless, and its config.json of model type Llama_Nemotron_Nano_VL points through auto_map to a back repo that holds the malicious code. When a victim loads the front model, the back repo's code runs on their host with vLLM's privileges.

The attacker needs the victim to load a model they control: through a model name pasted from a blog, a pipeline that pulls models by name, or a user-supplied model field in a service. The CVSS vector has user interaction and low privileges, and the advisory says no interaction beyond loading is needed. The payoff is arbitrary command execution on a GPU server, CI job or developer machine: model weights, API keys, cloud credentials and the surrounding network.

Who is affected

vLLM below 0.11.1. The vulnerable path is hit whenever a config is loaded through vLLM's transformers utilities for a model whose config uses Nemotron_Nano_VL_Config, so a deployment that serves only models you vetted is much less exposed than one that loads arbitrary model names.

pip show vllm

vllm

Ecosystem
PyPI
Affected
< 0.11.1
Fixed in
0.11.1
Check
pip show vllm

How to fix it

Upgrade to vLLM 0.11.1:

pip install --upgrade "vllm>=0.11.1"

The fix is in pull request 28126. The advisory lists no workaround. Until you upgrade, load only models from repositories you trust, and inspect config.json for auto_map entries that point to other repos (the repo--module.Class form). Run model servers without cloud credentials or broad network access.

How to tell if you were hit

Search model configs you have downloaded for auto_map values that name a repository different from the model itself, especially under vision_config. Check the Hugging Face cache (~/.cache/huggingface/modules/transformers_modules) for dynamic modules you did not expect to be there, which is where fetched remote code lands. Look at the vLLM host for odd child processes, outbound connections to unfamiliar hosts during model load, and new files written at startup. Confirm the installed version with pip show vllm.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

vllm has a critical remote code execution vector in a config class named Nemotron_Nano_VL_Config. When vllm loads a model config that contains an auto_map entry, the config class resolves that mapping with get_class_from_dynamic_module(...) and immediately instantiates the returned class. This fetches and executes Python from the remote repository referenced in the auto_map string. Crucially, this happens even when the caller explicitly sets trust_remote_code=False in vllm.transformers_utils.config.get_config. In practice, an attacker can publish a benign-looking frontend repo whose config.json points via auto_map to a separate malicious backend repo; loading the frontend will silently run the backend’s code on the victim host.

Details

The vulnerable code resolves and instantiates classes from auto_map entries without checking whether those entries point to a different repo or whether remote code execution is allowed.

class Nemotron_Nano_VL_Config(PretrainedConfig):
    model_type = 'Llama_Nemotron_Nano_VL'

    def __init__(self, **kwargs):
        super().__init__(**kwargs)

        if vision_config is not None:
            assert "auto_map" in vision_config and "AutoConfig" in vision_config["auto_map"]
            # <-- vulnerable dynamic resolution + instantiation happens here
            vision_auto_config = get_class_from_dynamic_module(*vision_config["auto_map"]["AutoConfig"].split("--")[::-1])
            self.vision_config = vision_auto_config(**vision_config)
        else:
            self.vision_config = PretrainedConfig()

get_class_from_dynamic_module(...) is capable of fetching and importing code from the Hugging Face repo specified in the mapping. trust_remote_code is not enforced for this code path. As a result, a frontend repo can redirect the loader to any backend repo and cause code execution, bypassing the trust_remote_code guard.

Impact

This is a critical vulnerability because it breaks the documented trust_remote_code safety boundary in a core model-loading utility. The vulnerable code lives in a common loading path, so any application, service, CI job, or developer machine that uses vllm’s transformer utilities to load configs can be affected. The attack requires only two repos and no user interaction beyond loading the frontend model. A successful exploit can execute arbitrary commands on the host.

Fixes

  • https://github.com/vllm-project/vllm/pull/28126

Credited to Vancir, Isotr0py, DarkLight1337, russellb.

Questions

Does setting trust_remote_code=False protect me from CVE-2025-66448?

No. That is the point of the flaw. The Nemotron_Nano_VL_Config path resolves and runs the auto_map class without enforcing the setting, so it was bypassed in versions before 0.11.1.

Which vLLM version fixes it?

0.11.1. The upstream fix is pull request 28126 in the vLLM repository.

What does an attacker need?

Two Hugging Face repos, one benign-looking and one holding the payload, and a victim who loads the front model on a vLLM host. No other interaction is needed, according to the advisory.

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