SECURITY & CVE TRACK RECORD

Hugging Face Transformers Security Advisories, CVEs & Patched Versions

Historical vulnerability disclosures, CVSS severity ratings, affected version ranges, and verified patch releases for Hugging Face Transformers.

Total Tracked Advisories
56
32 distinct CVE numbers
Critical & High Severity
28
50% of all disclosures
Latest Security Fix
5.10.0
Tracked release notes
Security Posture Status
High Scrutiny
Deterministic OSV.dev telemetry
Tracked Vulnerability Timeline (56)
🛡️ CVE-2026-80047 PYSEC-2026-4174 Oct 01, 2026
HIGH (CVSS 7.8)

Hugging Face Transformers downloads custom generation code before trust consent

A vulnerability in Hugging Face Transformers (versions 4.49.0, <= 5.8.1) allows remote Python files to be written to local disk without user consent when using GenerativePreTrainedModel.load_custom_generate(). The function fetches and caches a remote module file before perform...

Vulnerable Range: 4.49.0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2026-9856 PYSEC-2026-3929 Sep 10, 2026
HIGH (CVSS 7.1)

Transformers save_pretrained path traversal allows arbitrary file writes through chat template names

A vulnerability in huggingface/transformers versions < 5.10.0 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 the `chat_template` dic...

Vulnerable Range: 0 -> 5.10.0
Fix Version: 5.10.0
Official Advisory Source ↗
🛡️ CVE-2026-80047 GHSA-x9r9-c232-4q39 Sep 01, 2026
HIGH (CVSS 7.8)

Hugging Face Transformers downloads custom generation code before trust consent

A vulnerability in Hugging Face Transformers (versions 4.49.0, <= 5.8.1) allows remote Python files to be written to local disk without user consent when using GenerativePreTrainedModel.load_custom_generate(). The function fetches and caches a remote module file before perform...

Vulnerable Range: 4.49.0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2026-9856 GHSA-xrqw-3rrv-vx5w Aug 02, 2026
HIGH (CVSS 7.1)

Transformers save_pretrained path traversal allows arbitrary file writes through chat template names

A vulnerability in huggingface/transformers versions < 5.10.0 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 the `chat_template` dic...

Vulnerable Range: 0 -> 5.10.0
Fix Version: 5.10.0
Official Advisory Source ↗
🛡️ CVE-2025-6921 PYSEC-2026-1980 Jul 07, 2026
MEDIUM (CVSS 5.3)

Hugging Face Transformers vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizer

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 regular expressions in...

Vulnerable Range: 0 -> 4.53.0
Official Advisory Source ↗
🛡️ CVE-2025-6051 PYSEC-2026-1988 Jul 07, 2026
MEDIUM (CVSS 5.3)

Hugging Face Transformers library has Regular Expression Denial of Service

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 is fixed in version...

Vulnerable Range: 0 -> 4.53.0
Official Advisory Source ↗
🛡️ CVE-2025-6638 PYSEC-2026-1981 Jul 07, 2026
MEDIUM (CVSS 5.3)

Hugging Face Transformers is vulnerable to ReDoS through its MarianTokenizer

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 fixed in version 4.5...

Vulnerable Range: 0 -> 4.53.0
Official Advisory Source ↗
🛡️ CVE-2025-5197 PYSEC-2026-1983 Jul 07, 2026
MEDIUM (CVSS 5.3)

Hugging Face Transformers Regular Expression Denial of Service (ReDoS) vulnerability

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 PyTorch format, uses a ...

Vulnerable Range: 0 -> 4.53.0
Official Advisory Source ↗
🛡️ CVE-2025-3933 PYSEC-2026-1977 Jul 07, 2026
MEDIUM (CVSS 5.3)

Transformers is vulnerable to ReDoS attack through its DonutProcessor class

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.51.3 and earlier, and is fixed in version 4.52.1. T...

Vulnerable Range: 0 -> 4.52.1
Official Advisory Source ↗
🛡️ CVE-2025-3263 PYSEC-2026-1987 Jul 07, 2026
MEDIUM (CVSS 5.3)

Transformers's ReDoS vulnerability in get_configuration_file can lead to catastrophic backtracking

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, and the issue is ...

Vulnerable Range: 0 -> 4.51.0
Official Advisory Source ↗
🛡️ CVE-2025-3262 PYSEC-2026-1979 Jul 07, 2026
MEDIUM (CVSS 5.3)

Transformers vulnerable to ReDoS attack through its SETTING_RE variable

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 the `transformers/c...

Vulnerable Range: 4.49.0 -> 4.51.0
Official Advisory Source ↗
🛡️ CVE-2025-3777 PYSEC-2026-1986 Jul 07, 2026
LOW (CVSS 3.5)

Transformers's Improper Input Validation vulnerability can be exploited through username injection

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 username injection....

Vulnerable Range: 0 -> 4.52.1
Official Advisory Source ↗
🛡️ CVE-2025-3264 PYSEC-2026-1985 Jul 07, 2026
MEDIUM (CVSS 5.3)

Transformers vulnerable to ReDoS attack through its get_imports() function

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 version 4.51.0. The i...

Vulnerable Range: 0 -> 4.51.0
Official Advisory Source ↗
🛡️ CVE-2025-1194 PYSEC-2026-1984 Jul 07, 2026
MEDIUM (CVSS 4.3)

Transformers Regular Expression Denial of Service (ReDoS) vulnerability

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 SubWordJapaneseTokenizer class, whe...

Vulnerable Range: 0 -> 4.50.0
Official Advisory Source ↗
🛡️ CVE-2024-12720 PYSEC-2026-1982 Jul 07, 2026
MEDIUM (CVSS 5.3)

Transformers Regular Expression Denial of Service (ReDoS) vulnerability

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 expression processes speci...

Vulnerable Range: 0 -> 4.48.0
Official Advisory Source ↗
🛡️ CVE-2024-3568 PYSEC-2026-1978 Jul 07, 2026
LOW (CVSS 3.4)

Transformers Deserialization of Untrusted Data vulnerability

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 crafting a malicious s...

Vulnerable Range: 0 -> 4.38.0
Official Advisory Source ↗
🛡️ CVE-2026-5241 GHSA-fgcw-684q-jj6r Jun 03, 2026
HIGH (CVSS 8.0)

huggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading Path

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, intended to prevent r...

Vulnerable Range: 0 -> 5.5.0
Fix Version: 5.5.0 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-5241 PYSEC-2026-2290 Jun 03, 2026
CRITICAL (CVSS 9.6)

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

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, intended to prevent r...

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2026-4372 GHSA-29pf-2h5f-8g72 May 26, 2026
HIGH (CVSS 7.8)

HuggingFace transformers vulnerable to remote code execution

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` field set to an att...

Vulnerable Range: 0 -> 5.3.0
Fix Version: 5.3.0 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-4372 PYSEC-2026-2289 May 24, 2026
HIGH (CVSS 7.8)

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.

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` field set to an att...

Vulnerable Range: 0 -> 5.3.0
Fix Version: 5.3.0 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-1839 GHSA-69w3-r845-3855 Apr 07, 2026
MEDIUM (CVSS 6.5)

HuggingFace Transformers allows for arbitrary code execution in the `Trainer` class

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` parameter. This ...

Vulnerable Range: 0 -> 5.0.0rc3
Fix Version: 5.0.0rc3
Official Advisory Source ↗
🛡️ CVE-2026-1839 PYSEC-2026-2288 Apr 07, 2026
HIGH (CVSS 7.8)

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 li

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` parameter. This ...

Vulnerable Range: 0 -> 5.0.0
Fix Version: 5.0.0 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-14930 PYSEC-2025-218 Dec 23, 2025
HIGH (CVSS 7.8)

Hugging Face Transformers GLM4 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of

Hugging Face Transformers GLM4 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulne...

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2025-14929 PYSEC-2025-217 Dec 23, 2025
HIGH (CVSS 7.8)

Hugging Face Transformers X-CLIP Checkpoint Conversion Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on af

Hugging Face Transformers X-CLIP Checkpoint Conversion Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is requir...

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2025-14928 PYSEC-2025-216 Dec 23, 2025
HIGH (CVSS 7.8)

Hugging Face Transformers HuBERT convert_config Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hu

Hugging Face Transformers HuBERT convert_config Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnera...

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2025-14927 PYSEC-2025-215 Dec 23, 2025
HIGH (CVSS 7.8)

Hugging Face Transformers SEW-D convert_config Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hug

Hugging Face Transformers SEW-D convert_config Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnerab...

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2025-14926 PYSEC-2025-214 Dec 23, 2025
HIGH (CVSS 7.8)

Hugging Face Transformers SEW convert_config Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Huggi

Hugging Face Transformers SEW convert_config Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vulnerabil...

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2025-14924 PYSEC-2025-213 Dec 23, 2025
HIGH (CVSS 7.8)

Hugging Face Transformers megatron_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installa

Hugging Face Transformers megatron_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit t...

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2025-14921 PYSEC-2025-212 Dec 23, 2025
HIGH (CVSS 7.8)

Hugging Face Transformers Transformer-XL Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected i

Hugging Face Transformers Transformer-XL Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to ex...

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2025-14920 PYSEC-2025-211 Dec 23, 2025
HIGH (CVSS 7.8)

Hugging Face Transformers Perceiver Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected instal

Hugging Face Transformers Perceiver Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit...

Vulnerable Range: 0 -> unfixed
Fix Version: Review Advisory
Official Advisory Source ↗
🛡️ CVE-2025-6921 GHSA-4w7r-h757-3r74 Sep 23, 2025
MEDIUM (CVSS 5.3)

Hugging Face Transformers vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizer

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 regular expressions in...

Vulnerable Range: 0 -> 4.53.0
Official Advisory Source ↗
🛡️ CVE-2025-6051 GHSA-rcv9-qm8p-9p6j Sep 14, 2025
MEDIUM (CVSS 5.3)

Hugging Face Transformers library has Regular Expression Denial of Service

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 is fixed in version...

Vulnerable Range: 0 -> 4.53.0
Official Advisory Source ↗
🛡️ CVE-2025-6638 GHSA-59p9-h35m-wg4g Sep 12, 2025
MEDIUM (CVSS 5.3)

Hugging Face Transformers is vulnerable to ReDoS through its MarianTokenizer

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 fixed in version 4.5...

Vulnerable Range: 0 -> 4.53.0
Official Advisory Source ↗
🛡️ CVE-2025-5197 GHSA-9356-575x-2w9m Aug 06, 2025
MEDIUM (CVSS 5.3)

Hugging Face Transformers Regular Expression Denial of Service (ReDoS) vulnerability

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 PyTorch format, uses a ...

Vulnerable Range: 0 -> 4.53.0
Official Advisory Source ↗
🛡️ CVE-2025-3933 GHSA-37mw-44qp-f5jm Jul 11, 2025
MEDIUM (CVSS 5.3)

Transformers is vulnerable to ReDoS attack through its DonutProcessor class

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.51.3 and earlier, and is fixed in version 4.52.1. T...

Vulnerable Range: 0 -> 4.52.1
Official Advisory Source ↗
🛡️ CVE-2025-3262 GHSA-489j-g2vx-39wf Jul 07, 2025
MEDIUM (CVSS 5.3)

Transformers vulnerable to ReDoS attack through its SETTING_RE variable

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 the `transformers/c...

Vulnerable Range: 4.49.0 -> 4.51.0
Official Advisory Source ↗
🛡️ CVE-2025-3264 GHSA-jjph-296x-mrcr Jul 07, 2025
MEDIUM (CVSS 5.3)

Transformers vulnerable to ReDoS attack through its get_imports() function

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 version 4.51.0. The i...

Vulnerable Range: 0 -> 4.51.0
Official Advisory Source ↗
🛡️ CVE-2025-3777 GHSA-phhr-52qp-3mj4 Jul 07, 2025
LOW (CVSS 3.5)

Transformers's Improper Input Validation vulnerability can be exploited through username injection

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 username injection....

Vulnerable Range: 0 -> 4.52.1
Official Advisory Source ↗
🛡️ CVE-2025-3263 GHSA-q2wp-rjmx-x6x9 Jul 07, 2025
MEDIUM (CVSS 5.3)

Transformers's ReDoS vulnerability in get_configuration_file can lead to catastrophic backtracking

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, and the issue is ...

Vulnerable Range: 0 -> 4.51.0
Official Advisory Source ↗
🛡️ CVE-2025-2099 GHSA-qq3j-4f4f-9583 May 19, 2025
MEDIUM (CVSS 5.3)

Hugging Face Transformers Regular Expression Denial of Service

A Regular Expression Denial of Service (ReDoS) exists in the `preprocess_string()` function of the `transformers.testing_utils` module. In versions **before 4.50.0**, the regex used to process code blocks in docstrings contains nested quantifiers that can trigger catastrophic ...

Vulnerable Range: 0 -> 4.50.0
Official Advisory Source ↗
🛡️ CVE-2025-2099 PYSEC-2025-40 May 19, 2025
HIGH (CVSS 7.5)

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

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 in docstrings conta...

Vulnerable Range: 0 -> 8cb522b4190bd556ce51be04942720650b1a3e57, 0 -> 4.49.0
Fix Version: 8cb522b4190bd556ce51be04942720650b1a3e57
Official Advisory Source ↗
🛡️ CVE-2025-1194 GHSA-fpwr-67px-3qhx Apr 29, 2025
MEDIUM (CVSS 4.3)

Transformers Regular Expression Denial of Service (ReDoS) vulnerability

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 SubWordJapaneseTokenizer class, whe...

Vulnerable Range: 0 -> 4.50.0
Official Advisory Source ↗
🛡️ CVE-2024-12720 GHSA-6rvg-6v2m-4j46 Mar 20, 2025
MEDIUM (CVSS 5.3)

Transformers Regular Expression Denial of Service (ReDoS) vulnerability

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 expression processes speci...

Vulnerable Range: 0 -> 4.48.0
Official Advisory Source ↗
🛡️ CVE-2024-11394 GHSA-hxxf-235m-72v3 Nov 23, 2024
HIGH (CVSS 8.8)

Deserialization of Untrusted Data in Hugging Face Transformers

Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this...

Vulnerable Range: 0 -> 4.48.0
Official Advisory Source ↗
🛡️ CVE-2024-11392 GHSA-qxrp-vhvm-j765 Nov 23, 2024
HIGH (CVSS 7.5)

Deserialization of Untrusted Data in Hugging Face Transformers

Hugging Face Transformers MobileViTV2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit thi...

Vulnerable Range: 0 -> 4.48.0
Official Advisory Source ↗
🛡️ CVE-2024-11393 GHSA-wrfc-pvp9-mr9g Nov 23, 2024
HIGH (CVSS 8.8)

Deserialization of Untrusted Data in Hugging Face Transformers

Hugging Face Transformers MaskFormer Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploi...

Vulnerable Range: 0 -> 4.48.0
Official Advisory Source ↗
🛡️ CVE-2024-11393 PYSEC-2024-228 Nov 22, 2024
HIGH (CVSS 8.8)

Hugging Face Transformers MaskFormer Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected insta

Hugging Face Transformers MaskFormer Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploi...

Vulnerable Range: 0 -> 4.48.0
Official Advisory Source ↗
🛡️ CVE-2024-11394 PYSEC-2024-229 Nov 22, 2024
HIGH (CVSS 8.8)

Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installatio

Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this...

Vulnerable Range: 0 -> 4.48.0
Official Advisory Source ↗
🛡️ CVE-2024-11392 PYSEC-2024-227 Nov 22, 2024
HIGH (CVSS 8.8)

Hugging Face Transformers MobileViTV2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installati

Hugging Face Transformers MobileViTV2 Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit thi...

Vulnerable Range: 0 -> 4.48.0
Official Advisory Source ↗
🛡️ CVE-2024-3568 GHSA-37q5-v5qm-c9v8 Apr 10, 2024
LOW (CVSS 3.4)

Transformers Deserialization of Untrusted Data vulnerability

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 crafting a malicious s...

Vulnerable Range: 0 -> 4.38.0
Official Advisory Source ↗
🛡️ CVE-2023-7018 PYSEC-2023-301 Dec 20, 2023
HIGH (CVSS 7.8)

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

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

Vulnerable Range: 0 -> 1d63b0ec361e7a38f1339385e8a5a855085532ce, 0 -> 4.36.0
Fix Version: 1d63b0ec361e7a38f1339385e8a5a855085532ce
Official Advisory Source ↗
🛡️ CVE-2023-6730 PYSEC-2023-300 Dec 19, 2023
HIGH (CVSS 8.8)

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

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

Vulnerable Range: 0 -> 1d63b0ec361e7a38f1339385e8a5a855085532ce, 0 -> 4.36.0
Fix Version: 1d63b0ec361e7a38f1339385e8a5a855085532ce
Official Advisory Source ↗
🛡️ CVE-2023-2800 PYSEC-2023-299 May 18, 2023
MEDIUM (CVSS 4.7)

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

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

Vulnerable Range: 0 -> 80ca92470938bbcc348e2d9cf4734c7c25cb1c43, 0 -> 4.30.0
Fix Version: 80ca92470938bbcc348e2d9cf4734c7c25cb1c43
Official Advisory Source ↗