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-08-12T12:04:43.093Z |
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 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-5197 |
vulnerable | 2026-06-08 07:35:24.360978 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3933 |
vulnerable | 2026-06-08 07:23:10.163369 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3777 |
vulnerable | 2026-06-08 07:23:09.872941 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3264 |
vulnerable | 2026-06-08 07:23:08.564872 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3263 |
vulnerable | 2026-06-08 07:23:08.564427 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-3262 |
vulnerable | 2026-06-08 07:23:08.562979 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-2099 |
vulnerable | 2026-06-08 07:14:58.015530 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-1194 |
vulnerable | 2026-06-08 07:06:37.136561 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2024-3568 |
vulnerable | 2026-06-08 06:43:50.294754 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2024-12720 |
vulnerable | 2026-06-08 06:25:35.951383 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-7018 |
vulnerable | 2026-06-08 06:21:56.619877 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-6730 |
vulnerable | 2026-06-08 06:21:55.388348 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-2800 |
vulnerable | 2026-06-08 06:02:43.026449 | db.gcve.eu details were skipped to keep the page responsive. | 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.