PatchSiren

huggingface CVE debriefs

These pages are published after PatchSiren validates generated defensive summaries against stored public CVE and source evidence.

MEDIUM huggingface CVE published 2026-11-09

CVE-2026-124588

A security flaw has been discovered in huggingface finetrainers 0.1.0/0.2.0. The impacted element is the function resolve_component_cls of the file finetrainers/utils/model.py of the component Model Index Handler. Performing a manipulation of the argument Library results in code injection. The attack can be initiated remotely. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.

HIGH huggingface CVE published 2026-10-23

CVE-2026-57845

CVE-2026-57845 debrief based on the supplied source corpus. The CVE record was published on 2026-10-23T18:31:36.000Z and has not been modified since then. The NVD entry is currently High. Defenders responsible for systems using Hugging Face Datasets, especially those loading datasets from untrusted sources or using the deprecated pandas packaged builder, should assess potential exposure and impact. The vulnerability allows attackers to execute arbitrary Python code by crafting a malicious pickle file loaded through the deprecated pandas packaged builder in Hugging Face Datasets versions up to 5.1.0. This could lead to potential arbitrary Python code execution with victim process's

HIGH huggingface CVE published 2026-08-05

CVE-2026-71281

AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-08-05T13:24:52.723Z and has not been modified since then. Hugging Face peft's LoRA-GA and CorDA initialization modules call torch.load() on config-specified cache/covariance files without weights_only=True, bypassing peft's own safe-loading wrapper used elsewhere in the codebase. This could result in arbitrary code execution if a malicious cache or covariance file is loaded. Users should verify their configurations and ensure that only trusted cache and covariance files are loaded.

HIGH huggingface CVE published 2026-08-02

CVE-2026-9856

AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-08-02T16:16:25.413Z and has not been modified since then. This vulnerability, CVE-2026-9856, affects huggingface/transformers versions <=5.8.0.dev0, allowing an attacker to perform arbitrary file writes via path traversal. The issue resides in the `save_pretrained()` methods of `PreTrainedTokenizerBase` and `ProcessorMixin`, where keys from the `chat_template` dictionary are used directly as filenames without proper validation. Organizations should be aware of the high CVSS score of 7.1 and the potential impact on their systems.

MEDIUM huggingface CVE published 2026-07-24

CVE-2026-66007

AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-07-24T15:19:07.493Z and has not been modified since then. The Datasets library through version 5.0.0 contains a path traversal vulnerability in folder-based dataset builders. The vulnerability is due to improper validation of the file_name metadata field, which can be exploited to read arbitrary local files. Organizations using Hugging Face's Datasets library, particularly those using folder-based dataset builders, should be aware of this vulnerability and take steps to mitigate it. They should review and update affected datasets to prevent path traversal attacks and monitor for suspicious activity related to Datasets library usage. Additionally, organizations should prioritize patching to prevent potential path traversal attacks and review compensating controls for exposed systems while remediation is scheduled and verified.

MEDIUM huggingface CVE published 2026-07-16

CVE-2026-63086

The text-generation-inference library through version 3.3.7 contains a server-side request forgery (SSRF) vulnerability in its OpenAI-compatible multimodal chat completions endpoint. This vulnerability allows unauthenticated network attackers to coerce the server into issuing arbitrary HTTP GET requests by supplying a crafted image_url value in chat message content. The vulnerability arises from the fetch_image function in router/src/validation.rs, which performs no validation of private, loopback, link-local, or cloud metadata target addresses. Furthermore, the reqwest HTTP client follows redirects by default, enabling attackers to bypass scheme checks via redirect chains to reach internal services and cloud instance-metadata endpoints for internal port scanning and credential theft.

HIGH huggingface CVE published 2026-07-15

CVE-2026-45804

The Diffusers library, used for pretrained diffusion models, had a vulnerability in its DiffusionPipeline.from_pretrained flow prior to version 0.38.0. This flow could bypass the trust_remote_code guard, allowing custom pipeline code from a Hub repository to execute through the custom pipeline flow without requiring custom_pipeline or trust_remote_code=True. This issue is particularly concerning for users who utilize custom pipeline code or untrusted repositories. The vulnerability was published on 2026-07-15T17:16:48.310Z and has been fixed in version 0.38.0. Users of the Diffusers library, especially those utilizing custom pipeline code or untrusted repositories, should be aware of this vulnerability and take steps to upgrade or mitigate the risk. The CVE record was published on 2026-07-15T17:16:48.310Z and has not been modified since then.

HIGH huggingface CVE published 2026-05-24

CVE-2026-4372

A critical remote code execution vulnerability exists in the HuggingFace transformers library versions prior to 5.3.0. The vulnerability stems from unfiltered deserialization of configuration attributes in `config.json` files, specifically involving the `_attn_implementation_internal` field. When a victim loads a maliciously crafted model using the standard `AutoModelForCausalLM.from_pretrained()` API, the library downloads and executes arbitrary Python code from an attacker-controlled HuggingFace Hub repository with the victim's full OS privileges. The attack bypasses the `trust_remote_code` security mechanism and is invisible to the victim during standard documented usage. The vulnerability was disclosed via Huntr and patched in commit a7f8e7ff37d87d1a1a0c8cf607971c607741452f. The issue was published to CVE on 2026-05-24 and last modified on 2026-05-26.

HIGH Huggingface CVE published 2026-05-14

CVE-2026-44827

CVE-2026-44827 is a high-severity remote code execution issue in Hugging Face diffusers versions before 0.38.0. According to the CVE description and linked vendor advisory, a specially crafted Hugging Face Hub repository can cause code to run during a normal DiffusionPipeline.from_pretrained() load, even when trust_remote_code=True was not explicitly enabled. The issue is fixed in diffusers 0.38.0.

HIGH huggingface CVE published 2026-05-14

CVE-2026-44513

CVE-2026-44513 is a high-severity arbitrary code execution vulnerability in Hugging Face Diffusers, a popular Python library for pretrained diffusion models. The flaw exists in versions prior to 0.38.0 and stems from an architectural defect in how the `trust_remote_code` security gate was implemented. Rather than enforcing the check at the point of dynamic module loading, the gate was placed inside `DiffusionPipeline.download()`, allowing multiple code paths to bypass the security control entirely. Three distinct attack vectors enable remote code execution even when `trust_remote_code=False` (the default): (1) specifying a `custom_pipeline` from an attacker-controlled repository causes the gate to evaluate against the base repository's file list rather than the custom pipeline's; (2) loading from a local path with a `custom_pipeline` skips `download()` entirely, bypassing the gate; and (3) local snapshots containing custom component files referenced in `model_index.json` execute without security validation. The vulnerability was published on May 14, 2026, and modified on May 19, 2026. It carries a CVSS 3.1 score of 8.8 (HIGH) with network attack vector, low complexity, no privileges required, and high impacts to confidentiality, integrity, and availability. The root cause is classified as CWE-94 (Improper Control of Generation of Code). Organizations using Diffusers should upgrade to version 0.38.0 or later immediately, as this release contains the fix that properly relocates the security check to the dynamic module loading site.