| 0 |
| url |
VCID-3b57-p71g-tkhn |
| vulnerability_id |
VCID-3b57-p71g-tkhn |
| summary |
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 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. |
| references |
|
| fixed_packages |
| 0 |
| url |
pkg:pypi/transformers@4.38.0 |
| purl |
pkg:pypi/transformers@4.38.0 |
| is_vulnerable |
true |
| affected_by_vulnerabilities |
| 0 |
| vulnerability |
VCID-3gc6-hf7m-qbfn |
|
| 1 |
| vulnerability |
VCID-46y8-cawt-g7br |
|
| 2 |
| vulnerability |
VCID-4p99-5cwj-8fbn |
|
| 3 |
| vulnerability |
VCID-6jzg-ptkc-zfge |
|
| 4 |
| vulnerability |
VCID-6p4h-2f1g-9qh2 |
|
| 5 |
| vulnerability |
VCID-7chd-q1tt-7fck |
|
| 6 |
| vulnerability |
VCID-8rrr-pemt-jkaf |
|
| 7 |
| vulnerability |
VCID-aqqd-thbn-byaf |
|
| 8 |
| vulnerability |
VCID-aud4-pr4h-r3er |
|
| 9 |
| vulnerability |
VCID-k9e8-tqj2-gqbd |
|
| 10 |
| vulnerability |
VCID-mj4x-79x9-83ax |
|
| 11 |
| vulnerability |
VCID-pn57-nb2x-n7gw |
|
| 12 |
| vulnerability |
VCID-qyfa-xf7d-n3gt |
|
| 13 |
| vulnerability |
VCID-s9jb-vbrz-2qa5 |
|
| 14 |
| vulnerability |
VCID-w57w-5mrk-cqbr |
|
|
| resource_url |
http://public2.vulnerablecode.io/packages/pkg:pypi/transformers@4.38.0 |
|
|
| aliases |
CVE-2024-3568, GHSA-37q5-v5qm-c9v8
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-3b57-p71g-tkhn |
|
| 1 |
|
| 2 |
| url |
VCID-46y8-cawt-g7br |
| vulnerability_id |
VCID-46y8-cawt-g7br |
| summary |
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 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. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2025-6921, GHSA-4w7r-h757-3r74
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-46y8-cawt-g7br |
|
| 3 |
| url |
VCID-4p99-5cwj-8fbn |
| vulnerability_id |
VCID-4p99-5cwj-8fbn |
| summary |
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. 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. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2025-3777, GHSA-phhr-52qp-3mj4
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-4p99-5cwj-8fbn |
|
| 4 |
| url |
VCID-6jzg-ptkc-zfge |
| vulnerability_id |
VCID-6jzg-ptkc-zfge |
| summary |
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 vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the handling of model files. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-25012. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2024-11394, GHSA-hxxf-235m-72v3, PYSEC-2024-229
|
| risk_score |
4.0 |
| exploitability |
0.5 |
| weighted_severity |
8.0 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-6jzg-ptkc-zfge |
|
| 5 |
| url |
VCID-6p4h-2f1g-9qh2 |
| vulnerability_id |
VCID-6p4h-2f1g-9qh2 |
| summary |
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 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. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2025-3263, GHSA-q2wp-rjmx-x6x9
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-6p4h-2f1g-9qh2 |
|
| 6 |
| url |
VCID-6wnz-1qbk-x3av |
| vulnerability_id |
VCID-6wnz-1qbk-x3av |
| summary |
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. |
| references |
|
| fixed_packages |
| 0 |
| url |
pkg:pypi/transformers@4.36.0 |
| purl |
pkg:pypi/transformers@4.36.0 |
| is_vulnerable |
true |
| affected_by_vulnerabilities |
| 0 |
| vulnerability |
VCID-3b57-p71g-tkhn |
|
| 1 |
| vulnerability |
VCID-3gc6-hf7m-qbfn |
|
| 2 |
| vulnerability |
VCID-46y8-cawt-g7br |
|
| 3 |
| vulnerability |
VCID-4p99-5cwj-8fbn |
|
| 4 |
| vulnerability |
VCID-6jzg-ptkc-zfge |
|
| 5 |
| vulnerability |
VCID-6p4h-2f1g-9qh2 |
|
| 6 |
| vulnerability |
VCID-7chd-q1tt-7fck |
|
| 7 |
| vulnerability |
VCID-8rrr-pemt-jkaf |
|
| 8 |
| vulnerability |
VCID-aqqd-thbn-byaf |
|
| 9 |
| vulnerability |
VCID-aud4-pr4h-r3er |
|
| 10 |
| vulnerability |
VCID-k9e8-tqj2-gqbd |
|
| 11 |
| vulnerability |
VCID-mj4x-79x9-83ax |
|
| 12 |
| vulnerability |
VCID-pn57-nb2x-n7gw |
|
| 13 |
| vulnerability |
VCID-qyfa-xf7d-n3gt |
|
| 14 |
| vulnerability |
VCID-s9jb-vbrz-2qa5 |
|
| 15 |
| vulnerability |
VCID-w57w-5mrk-cqbr |
|
|
| resource_url |
http://public2.vulnerablecode.io/packages/pkg:pypi/transformers@4.36.0 |
|
|
| aliases |
CVE-2023-7018, GHSA-v68g-wm8c-6x7j, PYSEC-2023-301
|
| risk_score |
4.0 |
| exploitability |
0.5 |
| weighted_severity |
8.0 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-6wnz-1qbk-x3av |
|
| 7 |
| url |
VCID-7chd-q1tt-7fck |
| vulnerability_id |
VCID-7chd-q1tt-7fck |
| summary |
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. |
| references |
| 0 |
|
| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
| reference_url |
https://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4 |
| reference_id |
|
| reference_type |
|
| scores |
| 0 |
| value |
5.3 |
| scoring_system |
cvssv3 |
| scoring_elements |
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
|
| 1 |
| value |
5.3 |
| scoring_system |
cvssv3.1 |
| scoring_elements |
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
|
| 2 |
| value |
7.5 |
| scoring_system |
cvssv3.1 |
| scoring_elements |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
|
| 3 |
| value |
MODERATE |
| scoring_system |
generic_textual |
| scoring_elements |
|
|
| 4 |
| value |
Track |
| scoring_system |
ssvc |
| scoring_elements |
SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-05-19T13:38:03Z/ |
|
|
| url |
https://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
|
| fixed_packages |
| 0 |
| url |
pkg:pypi/transformers@4.49.0 |
| purl |
pkg:pypi/transformers@4.49.0 |
| is_vulnerable |
true |
| affected_by_vulnerabilities |
| 0 |
| vulnerability |
VCID-3gc6-hf7m-qbfn |
|
| 1 |
| vulnerability |
VCID-46y8-cawt-g7br |
|
| 2 |
| vulnerability |
VCID-4p99-5cwj-8fbn |
|
| 3 |
| vulnerability |
VCID-6p4h-2f1g-9qh2 |
|
| 4 |
| vulnerability |
VCID-7chd-q1tt-7fck |
|
| 5 |
| vulnerability |
VCID-8rrr-pemt-jkaf |
|
| 6 |
| vulnerability |
VCID-aqqd-thbn-byaf |
|
| 7 |
| vulnerability |
VCID-msje-w8r1-wkh8 |
|
| 8 |
| vulnerability |
VCID-pn57-nb2x-n7gw |
|
| 9 |
| vulnerability |
VCID-qyfa-xf7d-n3gt |
|
| 10 |
| vulnerability |
VCID-s9jb-vbrz-2qa5 |
|
| 11 |
| vulnerability |
VCID-w57w-5mrk-cqbr |
|
|
| resource_url |
http://public2.vulnerablecode.io/packages/pkg:pypi/transformers@4.49.0 |
|
| 1 |
|
|
| aliases |
CVE-2025-2099, GHSA-qq3j-4f4f-9583, PYSEC-2025-40
|
| risk_score |
3.4 |
| exploitability |
0.5 |
| weighted_severity |
6.8 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-7chd-q1tt-7fck |
|
| 8 |
| url |
VCID-8rrr-pemt-jkaf |
| vulnerability_id |
VCID-8rrr-pemt-jkaf |
| summary |
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, 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). |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2025-1194, GHSA-fpwr-67px-3qhx
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-8rrr-pemt-jkaf |
|
| 9 |
|
| 10 |
| url |
VCID-aud4-pr4h-r3er |
| vulnerability_id |
VCID-aud4-pr4h-r3er |
| summary |
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 this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the handling of configuration files. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-24322. |
| references |
| 0 |
|
| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
|
| fixed_packages |
|
| aliases |
CVE-2024-11392, GHSA-qxrp-vhvm-j765, PYSEC-2024-227
|
| risk_score |
10.0 |
| exploitability |
2.0 |
| weighted_severity |
8.0 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-aud4-pr4h-r3er |
|
| 11 |
| url |
VCID-k9e8-tqj2-gqbd |
| vulnerability_id |
VCID-k9e8-tqj2-gqbd |
| summary |
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 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. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2024-12720, GHSA-6rvg-6v2m-4j46
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-k9e8-tqj2-gqbd |
|
| 12 |
| url |
VCID-mj4x-79x9-83ax |
| vulnerability_id |
VCID-mj4x-79x9-83ax |
| summary |
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 exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the parsing of model files. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-25191. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2024-11393, GHSA-wrfc-pvp9-mr9g, PYSEC-2024-228
|
| risk_score |
4.0 |
| exploitability |
0.5 |
| weighted_severity |
8.0 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-mj4x-79x9-83ax |
|
| 13 |
| url |
VCID-pn57-nb2x-n7gw |
| vulnerability_id |
VCID-pn57-nb2x-n7gw |
| summary |
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. 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. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2025-3933, GHSA-37mw-44qp-f5jm
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-pn57-nb2x-n7gw |
|
| 14 |
| url |
VCID-qyfa-xf7d-n3gt |
| vulnerability_id |
VCID-qyfa-xf7d-n3gt |
| summary |
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 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. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2025-3264, GHSA-jjph-296x-mrcr
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-qyfa-xf7d-n3gt |
|
| 15 |
| url |
VCID-re51-pz3b-xbc5 |
| vulnerability_id |
VCID-re51-pz3b-xbc5 |
| summary |
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. |
| references |
|
| fixed_packages |
| 0 |
| url |
pkg:pypi/transformers@4.36.0 |
| purl |
pkg:pypi/transformers@4.36.0 |
| is_vulnerable |
true |
| affected_by_vulnerabilities |
| 0 |
| vulnerability |
VCID-3b57-p71g-tkhn |
|
| 1 |
| vulnerability |
VCID-3gc6-hf7m-qbfn |
|
| 2 |
| vulnerability |
VCID-46y8-cawt-g7br |
|
| 3 |
| vulnerability |
VCID-4p99-5cwj-8fbn |
|
| 4 |
| vulnerability |
VCID-6jzg-ptkc-zfge |
|
| 5 |
| vulnerability |
VCID-6p4h-2f1g-9qh2 |
|
| 6 |
| vulnerability |
VCID-7chd-q1tt-7fck |
|
| 7 |
| vulnerability |
VCID-8rrr-pemt-jkaf |
|
| 8 |
| vulnerability |
VCID-aqqd-thbn-byaf |
|
| 9 |
| vulnerability |
VCID-aud4-pr4h-r3er |
|
| 10 |
| vulnerability |
VCID-k9e8-tqj2-gqbd |
|
| 11 |
| vulnerability |
VCID-mj4x-79x9-83ax |
|
| 12 |
| vulnerability |
VCID-pn57-nb2x-n7gw |
|
| 13 |
| vulnerability |
VCID-qyfa-xf7d-n3gt |
|
| 14 |
| vulnerability |
VCID-s9jb-vbrz-2qa5 |
|
| 15 |
| vulnerability |
VCID-w57w-5mrk-cqbr |
|
|
| resource_url |
http://public2.vulnerablecode.io/packages/pkg:pypi/transformers@4.36.0 |
|
|
| aliases |
CVE-2023-6730, GHSA-3863-2447-669p, PYSEC-2023-300
|
| risk_score |
4.5 |
| exploitability |
0.5 |
| weighted_severity |
9.0 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-re51-pz3b-xbc5 |
|
| 16 |
|
| 17 |
| url |
VCID-w57w-5mrk-cqbr |
| vulnerability_id |
VCID-w57w-5mrk-cqbr |
| summary |
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 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. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2025-5197, GHSA-9356-575x-2w9m
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-w57w-5mrk-cqbr |
|