Skip to content
OpenAdvisories

Vendor

huggingface

40 known vulnerabilities.

huggingface at a glance

Last 12 months
20
Critical · all time
2
Exploited · all time
0
Public exploit · all time
4
New vulnerabilities per month · last 12 months
0 3 5 December 2025: 0 vulnerabilities Dec 2025 January 2026: 0 vulnerabilities February 2026: 2 vulnerabilities March 2026: 1 vulnerability Mar April 2026: 1 vulnerability May 2026: 3 vulnerabilities June 2026: 1 vulnerability Jun July 2026: 5 vulnerabilities August 2026: 4 vulnerabilities September 2026: 1 vulnerability Sep October 2026: 1 vulnerability November 2026: 1 vulnerability
Show as table
MonthVulnerabilitiesCritical
Nov 202610
Oct 202610
Sep 202610
Aug 202640
Jul 202650
Jun 202610
May 202630
Apr 202610
Mar 202610
Feb 202620
Jan 202600
Dec 202500
Nov 202500
Oct 202510
Sep 202540
Aug 202510
Jul 202560
Jun 202500
May 202510
Apr 202510
Mar 202510
Feb 202500
Jan 202500
Dec 202400

40 results · Feed

  • Medium 6.3

    huggingface finetrainers Model Index model.py resolve_component_cls code injection

    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 Lib…

  • High 8.8
    CVE-2026-57845 Public exploit

    Hugging Face Datasets through 5.1.0 Pickle Deserialization RCE via Pandas Builder

    Hugging Face Datasets through 5.1.0 contains an insecure deserialization vulnerability that allows attackers to execute arbitrary Python code by crafting a malicious pickle file loaded through the deprecated pandas packaged builder. Attackers can supply a pic…

  • Medium 6.5

    tokenizers BpeBuilder Buffer Overflow via merge token

    tokenizers (Hugging Face) is affected by an out-of-bounds buffer access in BpeBuilder::build (tokenizers/src/models/bpe/model.rs). When loading a tokenizer.json via Tokenizer::from_file/from_str, the builder sizes a scratch buffer to the longest vocabulary ke…

  • Medium 5.5

    Hugging Face Transformers Path Traversal via Checkpoint Index

    Hugging Face Transformers fails to validate shard filenames in checkpoint index files, allowing attackers to read arbitrary files outside the model directory. Attackers can supply malicious index files with parent-directory references or absolute paths that a…

  • High 7.1

    Hugging Face Accelerate 1.14.0 Path Traversal and DoS via weight_map

    Hugging Face Accelerate through 1.14.0 contains a path traversal vulnerability in load_checkpoint_in_model and load_checkpoint_and_dispatch functions that fail to sanitize weight_map entries from sharded checkpoint indexes. Attackers can supply relative paths…

  • High 8.8

    peft Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules

    Hugging Face peft's LoRA-GA and CorDA initialization modules (src/peft/tuners/lora/corda.py lines ~102 and ~163, and src/peft/tuners/lora/loraga.py line ~101) call torch.load on config-specified cache/covariance files without weights_only=True, bypassing peft…

  • High 7.1

    Path Traversal in huggingface/transformers

    A vulnerability in huggingface/transformers versions <=5.8.0.dev0 allows 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 t…

  • Medium 6.5

    Datasets Path Traversal via Unsanitized file_name Metadata

    Datasets through 5.0.0, fixed in commit f989ef9, contains a path traversal vulnerability in folder-based dataset builders where the file_name metadata field is not properly validated before being joined to the dataset directory. Attackers can supply crafted f…

  • Medium 6.6

    Datasets Symlink-following Arbitrary File Write via Extractor.extract()

    Datasets through 5.00, fixed in commit ad2d853, contains a symlink-following vulnerability in Extractor.extract() that allows local attackers to write arbitrary files by pre-planting symlinks at predictable output paths. Attackers can redirect archive extract…

  • Medium 4.3

    Diffusers Path Traversal via weight_map Arbitrary File Read

    Diffusers through 0.39.0, fixed in commit cee298c, contains a path traversal vulnerability in the _get_checkpoint_shard_files function that allows attackers to read arbitrary files by supplying malicious weight_map values in model index JSON. Attackers can us…

  • High 8.6

    text-generation-inference 3.3.7 SSRF via fetch_image in multimodal chat completions

    text-generation-inference through 3.3.7 contains a server-side request forgery (SSRF) vulnerability in the OpenAI-compatible multimodal chat completions endpoint that allows unauthenticated network attackers to coerce the server into issuing arbitrary HTTP GE…

  • High 7.5

    Diffusers: TOCTOU Trust Remote Code Bypass

    Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, Diffusers' DiffusionPipeline.from_pretrained flow can bypass the trust_remote_code guard because download() validates model_index.json and custom pipeline code before later loading f…

  • High 8.0

    Policy Bypass in LightGlue Nested Config Resolution in huggingface/transformers

    A vulnerability in the LightGlue model loading path of huggingface/transformers version 5.2.0 allows an attacker-controlled model repository to execute arbitrary code during model initialization. The issue arises because the `trust_remote_code` parameter, int…

  • High 7.8
    CVE-2026-4372 Public exploit

    Arbitrary Remote Code Execution via `_attn_implementation_internal` Config Injection in huggingface/transformers

    A critical remote code execution vulnerability exists in all versions of the HuggingFace transformers library prior to version 5.3.0. The vulnerability allows an attacker to craft a malicious `config.json` file containing the `_attn_implementation_internal` f…

  • High 8.8

    Diffusers: None.py Trust Remote Code Bypass

    Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, diffusers 0.37.0 allows remote code execution without the trust_remote_code=True safeguard when loading pipelines from Hugging Face Hub repositories. The _resolve_custom_pipeline_and…

  • High 8.8

    Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components

    Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, a trust_remote_code bypass in DiffusionPipeline.from_pretrained allows arbitrary remote code execution despite the user passing trust_remote_code=False (or omitting it, which is the …

  • Medium 6.5

    Arbitrary Code Execution via Unsafe torch.load() in Trainer Checkpoint Loading in huggingface/transformers

    A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary code execution. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True…

  • Medium 6.3

    huggingface smolagents Incomplete Fix CVE-2025-9959 local_python_executor.py evaluate_with code injection

    A weakness has been identified in huggingface smolagents 1.25.0.dev0. This affects the function evaluate_augassign/evaluate_call/evaluate_with of the file src/smolagents/local_python_executor.py of the component Incomplete Fix CVE-2025-9959. This manipulation…

  • Medium 6.3

    huggingface smolagents LocalPythonExecutor requests.post server-side request forgery

    A weakness has been identified in huggingface smolagents 1.24.0. Impacted is the function requests.get/requests.post of the component LocalPythonExecutor. Executing a manipulation can lead to server-side request forgery. It is possible to launch the attack re…

  • High 7.5
    CVE-2026-0599 EPSS 29%

    Unbounded External Image Fetch in Validation Leads to Resource-Exhaustion DoS in huggingface/text-generation-inference

    A vulnerability in huggingface/text-generation-inference version 3.3.6 allows unauthenticated remote attackers to exploit unbounded external image fetching during input validation in VLM mode. The issue arises when the router scans inputs for Markdown image l…

  • Medium 5.4
    CVE-2025-11844 Public exploit

    XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function

    Hugging Face Smolagents version 1.20.0 contains an XPath injection vulnerability in the search_item_ctrl_f function located in src/smolagents/vision_web_browser.py. The function constructs an XPath query by directly concatenating user-supplied input into the …

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizer. The vulnerability arises from the _do_use_weight_decay method, which processes user-controlled regu…

  • Medium 6.3

    huggingface LeRobot ZeroMQ Socket lekiwi_remote.py missing authentication

    A vulnerability was identified in huggingface LeRobot up to 0.3.3. Affected by this vulnerability is an unknown functionality of the file lerobot/common/robot_devices/robots/lekiwi_remote.py of the component ZeroMQ Socket Handler. The manipulation leads to mi…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically within the `normalize_numbers()` method of the `EnglishNormalizer` class. This vulnerability affects versions up to 4.52.4 and i…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically affecting the MarianTokenizer's `remove_language_code()` method. This vulnerability is present in version 4.52.4 and has been fi…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hugging Face Transformers library, specifically in the `convert_tf_weight_name_to_pt_weight_name()` function. This function, responsible for converting TensorFlow weight names to PyTor…

  • High 7.6
    CVE-2025-5120 EPSS 31%

    Sandbox Escape Vulnerability in huggingface/smolagents

    A sandbox escape vulnerability was identified in huggingface/smolagents version 1.14.0, allowing attackers to bypass the restricted execution environment and achieve remote code execution (RCE). The vulnerability stems from the local_python_executor.py module…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically within the DonutProcessor class's `token2json()` method. This vulnerability affects versions 4.50.3 and earlier, and is fixed in…

  • Low 3.5

    Improper Input Validation in huggingface/transformers

    Hugging Face Transformers versions up to 4.49.0 are affected by an improper input validation vulnerability in the `image_utils.py` file. The vulnerability arises from insecure URL validation using the `startswith()` method, which can be bypassed through URL u…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically in the `get_imports()` function within `dynamic_module_utils.py`. This vulnerability affects versions 4.49.0 and is fixed in ver…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically in the `get_configuration_file()` function within the `transformers.configuration_utils` module. The affected version is 4.49.0,…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository, specifically in version 4.49.0. The vulnerability is due to inefficient regular expression complexity in the `SETTING_RE` variable within t…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A vulnerability in the `preprocess_string()` function of the `transformers.testing_utils` module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack. The regular expression used to process code blocks i…

  • Medium 4.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file `tokenization_gpt_neox_japanese.py` of the GPT-NeoX-Japanese model. The vulnerability occurs in the SubWordJapaneseTo…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in huggingface/transformers

    A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_nougat_fast.py. The vulnerability occurs in the post_process_single() function, where a regular expressi…

  • Medium 4.4

    Code Injection in huggingface/text-generation-inference

    A code injection vulnerability exists in the huggingface/text-generation-inference repository, specifically within the `autodocs.yml` workflow file. The vulnerability arises from the insecure handling of the `github.head_ref` user input, which is used to dyna…

  • Low 3.4
    CVE-2024-3568 Public exploit

    Arbitrary Code Execution via Deserialization in huggingface/transformers

    The huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data within the `load_repo_checkpoint()` function of the `TFPreTrainedModel()` class. Attackers can execute arbitrary code and commands by craf…

  • Critical 9.6

    Deserialization of Untrusted Data in huggingface/transformers

    Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.

  • Critical 9.0

    Deserialization of Untrusted Data in huggingface/transformers

    Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.

  • Medium 4.7

    Insecure Temporary File in huggingface/transformers

    Insecure Temporary File in GitHub repository huggingface/transformers prior to 4.30.0.