Huggingface/Transformers
Approved changes feed: RSS · Atom
cpe:2.3:a:huggingface:huggingface/transformers:*:*:*:*:*:*:*:*
part: a version: * update: *
| Vendor | Huggingface (99e96d05-83c7-5fa6-87a0-b60fade6cd99) |
|---|---|
| Product | Huggingface/Transformers (aec3ca1d-e5a4-572e-9db0-1a5ff66ce2ee) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | * |
| Target hardware | * |
| Other | * |
| Notes | Imported from gcve-enriched-dumps CVE data |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
| No PURL mappings for this CPE yet. | ||
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2026-5241 |
vulnerable | 2026-06-08 08:07:03.440583 |
Policy Bypass in LightGlue Nested Config Resolution in huggingface/transformers
HIGH (8)
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 remote code execution, is overridden by untrusted serialized configuration data in a nested code path. Specifically, when loading a LightGlue model using `AutoModel.from_pretrained()` with `trust_remote_code=False`, the `LightGlueConfig` reads the `trust_remote_code` value from the untrusted `config.json` file and propagates it into nested `AutoConfig.from_pretrained()` calls. This results in the execution of attacker-provided Python modules, even when the victim explicitly disables remote code execution. The vulnerability poses a high risk for environments such as API inference servers, research notebooks, CI/CD pipelines, and model evaluation workers, potentially leading to credential theft, lateral movement, or persistence/backdoor deployment.
Published: 2026-06-03T12:33:10.227Z
Updated: 2026-06-03T15:45:36.684Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2026-4372 |
vulnerable | 2026-06-08 08:05:13.300925 |
Arbitrary Remote Code Execution via `_attn_implementation_internal` Config Injection in huggingface/transformers
HIGH (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.json` file containing the `_attn_implementation_internal` field set to an attacker-controlled HuggingFace Hub repository ID. When a victim loads this model using the standard `AutoModelForCausalLM.from_pretrained()` API, the library downloads and executes arbitrary Python code from the attacker's repository with the victim's full OS privileges. This issue arises due to unfiltered deserialization of configuration attributes, insufficient sanitization of internal fields, and unsandboxed execution of downloaded kernels. The vulnerability bypasses the `trust_remote_code` security mechanism, is invisible to the victim, and exploits the standard documented usage pattern, making it particularly severe. Users are advised to upgrade to version 5.3.0 or later to mitigate this issue.
Published: 2026-05-24T13:40:40.995Z
Updated: 2026-05-26T15:21:02.376Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2026-1839 |
vulnerable | 2026-06-08 07:49:09.738049 |
Arbitrary Code Execution via Unsafe torch.load() in Trainer Checkpoint Loading in huggingface/transformers
MEDIUM (6.5)
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 issue affects all versions of the library supporting `torch>=2.2` when used with PyTorch versions below 2.6, as the `safe_globals()` context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as `rng_state.pth`, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.
Published: 2026-04-07T05:22:00.959Z
Updated: 2026-04-07T13:27:41.789Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-6921 |
vulnerable | 2026-06-08 07:43:16.653631 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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 the include_in_weight_decay and exclude_from_weight_decay lists. Malicious regular expressions can cause catastrophic backtracking during the re.search call, leading to 100% CPU utilization and a denial of service. This issue can be exploited by attackers who can control the patterns in these lists, potentially causing the machine learning task to hang and rendering services unresponsive.
Published: 2025-09-23T13:56:15.636Z
Updated: 2025-09-23T14:56:29.038Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-6638 |
vulnerable | 2026-06-08 07:43:15.746494 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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.53.0. The issue arises from inefficient regex processing, which can be exploited by crafted input strings containing malformed language code patterns, leading to excessive CPU consumption and potential denial of service.
Published: 2025-09-12T10:46:07.934Z
Updated: 2025-09-12T11:52:53.854Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-6051 |
vulnerable | 2026-06-08 07:43:14.177764 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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 4.53.0. The issue arises from the method's handling of numeric strings, which can be exploited using crafted input strings containing long sequences of digits, leading to excessive CPU consumption. This vulnerability impacts text-to-speech and number normalization tasks, potentially causing service disruption, resource exhaustion, and API vulnerabilities.
Published: 2025-09-14T17:03:02.953Z
Updated: 2025-09-15T15:59:54.371Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-5197 |
vulnerable | 2026-06-08 07:35:24.360978 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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 regex pattern `/[^/]*___([^/]*)/` that can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic backtracking. The vulnerability affects versions up to 4.51.3 and is fixed in version 4.53.0. This issue can lead to service disruption, resource exhaustion, and potential API service vulnerabilities, impacting model conversion processes between TensorFlow and PyTorch formats.
Published: 2025-08-06T11:53:37.232Z
Updated: 2025-08-06T13:03:10.518Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3933 |
vulnerable | 2026-06-08 07:23:10.163369 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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 version 4.52.1. The issue arises from the regex pattern `<s_(.*?)>` which can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic backtracking. This vulnerability can lead to service disruption, resource exhaustion, and potential API service vulnerabilities, impacting document processing tasks using the Donut model.
Published: 2025-07-11T09:22:27.103Z
Updated: 2025-07-11T15:07:34.839Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3777 |
vulnerable | 2026-06-08 07:23:09.872941 |
Improper Input Validation in huggingface/transformers
LOW (3.5)
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. This allows attackers to craft URLs that appear to be from YouTube but resolve to malicious domains, potentially leading to phishing attacks, malware distribution, or data exfiltration. The issue is fixed in version 4.52.1.
Published: 2025-07-07T09:55:38.190Z
Updated: 2025-07-07T12:26:15.099Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3264 |
vulnerable | 2026-06-08 07:23:08.564872 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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 issue arises from a regular expression pattern `\s*try\s*:.*?except.*?:` used to filter out try/except blocks from Python code, which can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic backtracking. This vulnerability can lead to remote code loading disruption, resource exhaustion in model serving, supply chain attack vectors, and development pipeline disruption.
Published: 2025-07-07T09:55:11.030Z
Updated: 2025-07-07T14:40:12.531Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3263 |
vulnerable | 2026-06-08 07:23:08.564427 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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 resolved in version 4.51.0. The vulnerability arises from the use of a regular expression pattern `config\.(.*)\.json` that can be exploited to cause excessive CPU consumption through crafted input strings, leading to catastrophic backtracking. This can result in model serving disruption, resource exhaustion, and increased latency in applications using the library.
Published: 2025-07-07T09:54:59.670Z
Updated: 2025-07-07T14:51:54.953Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3262 |
vulnerable | 2026-06-08 07:23:08.562979 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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/commands/chat.py` file. The regex contains repetition groups and non-optimized quantifiers, leading to exponential backtracking when processing 'almost matching' payloads. This can degrade application performance and potentially result in a denial-of-service (DoS) when handling specially crafted input strings. The issue is fixed in version 4.51.0.
Published: 2025-07-07T09:54:39.079Z
Updated: 2025-07-07T15:19:42.413Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-2099 |
vulnerable | 2026-06-08 07:14:58.015530 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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 contains nested quantifiers, leading to exponential backtracking when processing input with a large number of newline characters. An attacker can exploit this by providing a specially crafted payload, causing high CPU usage and potential application downtime, effectively resulting in a Denial of Service (DoS) scenario.
Published: 2025-05-19T11:22:36.908Z
Updated: 2025-05-19T13:45:13.385Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-1194 |
vulnerable | 2026-06-08 07:06:37.136561 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (4.3)
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, where regular expressions process specially crafted inputs. The issue stems from a regex exhibiting exponential complexity under certain conditions, leading to excessive backtracking. This can result in high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.48.1 (latest).
Published: 2025-04-29T11:30:38.810Z
Updated: 2025-04-29T13:21:13.446Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2024-3568 |
vulnerable | 2026-06-08 06:43:50.294754 |
Arbitrary Code Execution via Deserialization in huggingface/transformers
LOW (3.4)
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 serialized payload, exploiting the use of `pickle.load()` on data from potentially untrusted sources. This vulnerability allows for remote code execution (RCE) by deceiving victims into loading a seemingly harmless checkpoint during a normal training process, thereby enabling attackers to execute arbitrary code on the targeted machine.
Published: 2024-04-10T17:07:55.667Z
Updated: 2024-08-01T20:12:07.859Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2024-12720 |
vulnerable | 2026-06-08 06:25:35.951383 |
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
MEDIUM (5.3)
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 specially crafted input. The issue stems from the regex exhibiting exponential time complexity under certain conditions, leading to excessive backtracking. This can result in significantly high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.46.3 (latest).
Published: 2025-03-20T10:11:15.586Z
Updated: 2025-03-20T13:25:27.023Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-7018 |
vulnerable | 2026-06-08 06:21:56.619877 |
Deserialization of Untrusted Data in huggingface/transformers
CRITICAL (9.6)
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.
Published: 2023-12-20T16:13:01.023Z
Updated: 2024-08-02T08:50:07.578Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-6730 |
vulnerable | 2026-06-08 06:21:55.388348 |
Deserialization of Untrusted Data in huggingface/transformers
CRITICAL (9)
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.
Published: 2023-12-19T12:11:20.729Z
Updated: 2024-08-02T08:35:14.897Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-2800 |
vulnerable | 2026-06-08 06:02:43.026449 |
Insecure Temporary File in huggingface/transformers
MEDIUM (4.7)
Insecure Temporary File in GitHub repository huggingface/transformers prior to 4.30.0.
Published: 2023-05-18T00:00:00.000Z
Updated: 2025-01-21T20:09:18.683Z |
Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.