Transformers
Approved changes feed: RSS · Atom
cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*
part: a version: * update: *
| Vendor | Huggingface (99e96d05-83c7-5fa6-87a0-b60fade6cd99) |
|---|---|
| Product | Transformers (b4ce00f1-117d-532e-8476-9985a60eef6e) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | * |
| Target hardware | * |
| Other | * |
| Notes | Imported from purl2cpe mapping |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
pkg:github/huggingface/transformers |
purl2cpe | 2026-06-01 10:17:04.506659 |
pkg:pypi/transformers |
purl2cpe | 2026-06-01 10:17:04.506660 |
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2026-1839 |
vulnerable | 2026-06-08 07:49:09.739064 |
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.655175 |
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-5197 |
vulnerable | 2026-06-08 07:35:24.361829 |
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.163485 |
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.873080 |
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.565006 | 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.564475 | 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.564067 | 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.016555 | 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.137550 | 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.297097 | 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.952374 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2024-11394 |
vulnerable | 2026-06-08 06:23:49.560045 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2024-11393 |
vulnerable | 2026-06-08 06:23:49.559390 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2024-11392 |
vulnerable | 2026-06-08 06:23:49.556427 | 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.620007 | 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.389525 | 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.027577 | 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.