Search
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
90 items
An assert-based security check in vLLM's activation function loading, at vllm/model_executor/layers/pooler/activations.py:48, restricts which functions can be loaded from a HuggingFace model's config.json. When vLLM runs in Python optimized mode (python -O or PYTHONOPTIMIZE=1), Python strips the assert, so an attacker-published malicious model can pass an arbitrary function_name to resolve_obj_by_qualname() and execute code during model initialization. The attack requires the victim to load the malicious model and the model to use a cross-encoder architecture.
Fix: Suggested fix: replace the assert with an explicit conditional raise: if not function_name.startswith("torch.nn.modules."): raise ValueError("Loading of activation functions is restricted to torch.nn.modules for…
Hugging Face Security AdvisoriesGHSA-3ww4-5jv9-j5gm reports that vLLM's revision pinning does not consistently cover all artifacts loaded for a model. Deployments that set `--revision` or `--code-revision` can still load dynamic code, GGUF files, image processors, retrieval side weights, or same-repository subfolder weights and config from an unpinned or default revision, so the pin does not describe the full artifact set served. The source states this is not a `trust_remote_code=False` bypass, unauthenticated RCE, or a demonstrated artifact compromise. The strongest example is Kimi-Audio, whose `whisper-large-v3` subfolder loads outside the configured revision.
A flaw in the LightGlue model loading path of huggingface/transformers 5.2.0 lets an attacker-controlled model repository run arbitrary code during model initialization. The `trust_remote_code` value, meant to block remote code, is overridden by the `trust_remote_code` setting read from the untrusted `config.json` and passed into nested `AutoConfig.from_pretrained()` calls. Code runs even when the victim calls `AutoModel.from_pretrained()` with `trust_remote_code=False`. The source rates the risk as high for inference servers, notebooks, CI/CD pipelines and evaluation workers, citing possible credential theft, lateral movement and persistence.
CVE-2026-47117 affects OpenMed before 1.5.2, where the PII privacy-filter model loading path contains a remote code execution flaw. The privacy-filter dispatcher applied broad substring matching to the user-supplied model_name parameter, so a value such as attacker/foo-privacy-filter-bar routed to a path that loads Hugging Face models with trust_remote_code=True. An unauthenticated attacker who supplies a malicious model repository with custom code referenced through auto_map in config.json or tokenizer_config.json gets that code imported and executed with the privileges of the OpenMed service process.
vllm-project/vllm version 0.14.1 hardcodes `trust_remote_code=True` in two model implementation files, `vllm/model_executor/models/nemotron_vl.py` and `vllm/model_executor/models/kimi_k25.py`. This overrides a user's explicit `--trust-remote-code=False` setting, allowing remote code execution through malicious HuggingFace model repositories. The issue is an incomplete fix for CVE-2025-66448 and CVE-2026-22807 and is particularly impactful for deployments loading NemotronVL or KimiK25 models.
CVE-2026-48545 affects Gradio before version 6.15.0. A cookie injection flaw in the shared module-level HTTP client used by the reverse proxy endpoint lets remote attackers, who control any HF Space, return a parent-domain cookie that is stored and replayed into proxy requests to other legitimate Spaces, enabling cross-Space session fixation. All users of the same Gradio deployment are affected. VulnCheck rates it CVSS 4.0 7.6 (HIGH); NVD has not yet provided an assessment.
Fix: Fixed in 6.15.0 (release tag gradio@6.15.0).
All versions of the HuggingFace transformers library before 5.3.0 contain a critical remote code execution flaw. A malicious config.json whose _attn_implementation_internal field points to an attacker-controlled Hub repository ID causes the library, when loaded via AutoModelForCausalLM.from_pretrained(), to download and run arbitrary Python code with the victim's full OS privileges. The flaw bypasses the trust_remote_code safeguard and requires no action beyond the standard documented usage.
Fixed in 5.3.0. Users are advised to upgrade to version 5.3.0 or later.
Boxlite, a sandbox service that runs OCI containers inside lightweight virtual machines, does not validate symlink targets when extracting tar entries from OCI image layers. An attacker can publish a crafted image to registries such as DockerHub, and once a user loads it, the attacker can write arbitrary content to any host path, which can lead to remote code execution on the host. The flaw sits in extract_layer_tarball_streaming and apply_oci_layer in boxlite/src/images/archive/tar.rs, and ensure_parent_dirs deliberately preserves symlinks that escape the extraction root.
lmdeploy hardcodes trust_remote_code=True at several HuggingFace Transformers call sites in lmdeploy/archs.py and lmdeploy/utils.py, including AutoConfig.from_pretrained(), PretrainedConfig.get_config_dict() and GenerationConfig.from_pretrained(). Versions lmdeploy <= 0.12.3 are confirmed affected, verified on v0.12.3 and main. An attacker who controls the model_path of a serving process can point it to a malicious HuggingFace repository, and Transformers then executes its remote Python code with the serving process's privileges.
The `diffusers` package's `DiffusionPipeline.from_pretrained` flow contains a time-of-check/time-of-use flaw in its `trust_remote_code` guard. The guard reads `model_index.json` through `hf_hub_download` from one Hub commit, then `snapshot_download` fetches the files, and these two independent calls can resolve to different commits if the repository changes between them. Because the custom pipeline `.py` file is then imported from the newer snapshot, a custom-code load can run without `trust_remote_code=True`, allowing arbitrary code execution.
The mamba language model framework through 2.2.6 is affected by insecure deserialization (CWE-502) when loading pre-trained models from HuggingFace Hub. The MambaLMHeadModel.from_pretrained() method calls torch.load() on pytorch_model.bin without setting weights_only=True, so arbitrary Python objects can be deserialized via the pickle module. An attacker who publishes a malicious model repository can execute arbitrary code on a victim's system, in the context of the mamba process, when the victim loads a model from it.
Diffusers versions before 0.38.0 let `DiffusionPipeline.from_pretrained` execute remote code even when `trust_remote_code=False` or omitted. The `trust_remote_code` gate sat inside `DiffusionPipeline.download()`, so cross-repo `custom_pipeline` values and local snapshots, which skip `download()`, loaded and ran attacker-supplied `pipeline.py` or custom component files silently on the victim's machine. Anyone calling `from_pretrained` with custom pipelines is affected.
Fixed in diffusers 0.38.0 via PR #13448, which moves the gate into `get_cached_module_file` in `src/diffusers/utils/dynamic_modules_utils.py`. Upgrade with `pip install --upgrade "diffusers>=0.38.0"`.
This advisory was withdrawn as a duplicate of GHSA-98h9-4798-4q5v and is kept to preserve external references. The original description reports that DiffusionPipeline.from_pretrained in Diffusers can load arbitrary code through the custom_pipeline flow from a Hub repo, or when _class_name in model_index.json names a custom class, without trust_remote_code being passed. The source describes the call succeeding and returning a functional pipeline.
Ray Data registers three custom Arrow extension types (ray.data.arrow_tensor, ray.data.arrow_tensor_v2, ray.data.arrow_variable_shaped_tensor) globally in PyArrow. When PyArrow reads a Parquet file with one of these types, Ray's __arrow_ext_deserialize__ passes the field metadata bytes to cloudpickle.loads(), enabling arbitrary code execution during schema parsing, before any row data is read. The source states that a related fix from May 2024 was reintroduced in July 2025 via PR #54831.
CVE-2026-6859 affects InstructLab. The `linux_train.py` script hardcodes `trust_remote_code=True` when loading models from HuggingFace, so a remote attacker can achieve arbitrary Python code execution by persuading a user to run `ilab train/download/generate` with a crafted malicious model from the HuggingFace Hub. The weakness is classified as CWE-829, and NVD had not yet provided an assessment at publication.
CVE-2026-1839 affects the HuggingFace Transformers library, specifically the `Trainer` class. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without `weights_only=True`, and the issue affects all versions supporting `torch>=2.2` used with PyTorch versions below 2.6. An attacker who supplies a malicious checkpoint file such as `rng_state.pth` can execute arbitrary code when it is loaded.
Fix: The issue is resolved in version v5.0.0rc3.
CVE-2026-34446 affects the Open Neural Network Exchange (ONNX) library before version 1.21.0. The onnx.load function checks for symlinks to prevent path traversal but does not check for hardlinks, which look like regular files on the filesystem, so the protection can be bypassed. The issue is classified as CWE-22 and CWE-61. NVD has not yet provided an assessment.
Fix: This issue has been patched in version 1.21.0.
NVD/CVE DatabaseA weakness in huggingface smolagents 1.25.0.dev0, in the functions evaluate_augassign, evaluate_call and evaluate_with in src/smolagents/local_python_executor.py, allows code injection. It is an incomplete fix for CVE-2025-9959 and can be triggered remotely. A public exploit exists, and the vendor did not respond to early disclosure.
onnx.hub.load() skips its trust check for untrusted model repositories when silent=True is passed, so no warning or confirmation prompt appears. The source states that the SHA256 check validates against a manifest that the attacker controls, so a malicious model can carry a matching hash. The source says that when chained with file-system vulnerabilities, a model loaded this way can silently exfiltrate files such as SSH keys and cloud credentials.
fickling versions up to and including 0.1.8 have an incomplete UNSAFE_IMPORTS blocklist that omits the stdlib modules uuid, _osx_support and _aix_support. Functions in these modules, such as uuid._get_command_stdout, _aix_support._read_cmd_output and _osx_support._find_build_tool, call subprocess.Popen() or os.system() with attacker-controlled arguments. A malicious pickle importing them passes fickling's UnsafeImports and NonStandardImports checks, and pickle.loads() runs the command.
Fix: Assessment: the modules uuid, _osx_support and _aix_support were added to the blocklist of unsafe imports (https://github.com/trailofbits/fickling/commit/ffac3479dbb97a7a1592d85991888562d34dd05b).