Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:pypi/transformers@4.3.3
purl pkg:pypi/transformers@4.3.3
Next non-vulnerable version 5.0.0rc3
Latest non-vulnerable version 5.0.0rc3
Risk 10.0
Vulnerabilities affecting this package (19)
Vulnerability Summary Fixed by
VCID-3b57-p71g-tkhn
Aliases:
CVE-2024-3568
GHSA-37q5-v5qm-c9v8
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.
4.38.0
Affected by 15 other vulnerabilities.
VCID-3gc6-hf7m-qbfn
Aliases:
CVE-2025-6638
GHSA-59p9-h35m-wg4g
transformers: Regular Expression Denial of Service (ReDoS) in huggingface/transformers
4.53.0
Affected by 1 other vulnerability.
VCID-46y8-cawt-g7br
Aliases:
CVE-2025-6921
GHSA-4w7r-h757-3r74
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.
4.53.0
Affected by 1 other vulnerability.
VCID-4p99-5cwj-8fbn
Aliases:
CVE-2025-3777
GHSA-phhr-52qp-3mj4
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.
4.52.1
Affected by 5 other vulnerabilities.
VCID-6jzg-ptkc-zfge
Aliases:
CVE-2024-11394
GHSA-hxxf-235m-72v3
PYSEC-2024-229
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.
4.48.0
Affected by 11 other vulnerabilities.
VCID-6p4h-2f1g-9qh2
Aliases:
CVE-2025-3263
GHSA-q2wp-rjmx-x6x9
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.
4.51.0
Affected by 7 other vulnerabilities.
VCID-6wnz-1qbk-x3av
Aliases:
CVE-2023-7018
GHSA-v68g-wm8c-6x7j
PYSEC-2023-301
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.
4.36.0
Affected by 16 other vulnerabilities.
VCID-7chd-q1tt-7fck
Aliases:
CVE-2025-2099
GHSA-qq3j-4f4f-9583
PYSEC-2025-40
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.
4.49.0
Affected by 12 other vulnerabilities.
4.50.0
Affected by 10 other vulnerabilities.
VCID-8rrr-pemt-jkaf
Aliases:
CVE-2025-1194
GHSA-fpwr-67px-3qhx
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).
4.50.0
Affected by 10 other vulnerabilities.
VCID-aqqd-thbn-byaf
Aliases:
CVE-2026-1839
GHSA-69w3-r845-3855
transformers: HuggingFace Transformers: Arbitrary code execution via malicious checkpoint file
5.0.0rc3
Affected by 0 other vulnerabilities.
VCID-aud4-pr4h-r3er
Aliases:
CVE-2024-11392
GHSA-qxrp-vhvm-j765
PYSEC-2024-227
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.
4.48.0
Affected by 11 other vulnerabilities.
VCID-k9e8-tqj2-gqbd
Aliases:
CVE-2024-12720
GHSA-6rvg-6v2m-4j46
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.
4.48.0
Affected by 11 other vulnerabilities.
VCID-mj4x-79x9-83ax
Aliases:
CVE-2024-11393
GHSA-wrfc-pvp9-mr9g
PYSEC-2024-228
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.
4.48.0
Affected by 11 other vulnerabilities.
VCID-pn57-nb2x-n7gw
Aliases:
CVE-2025-3933
GHSA-37mw-44qp-f5jm
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.
4.52.1
Affected by 5 other vulnerabilities.
VCID-qyfa-xf7d-n3gt
Aliases:
CVE-2025-3264
GHSA-jjph-296x-mrcr
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.
4.51.0
Affected by 7 other vulnerabilities.
VCID-re51-pz3b-xbc5
Aliases:
CVE-2023-6730
GHSA-3863-2447-669p
PYSEC-2023-300
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36.
4.36.0
Affected by 16 other vulnerabilities.
VCID-s9jb-vbrz-2qa5
Aliases:
CVE-2025-6051
GHSA-rcv9-qm8p-9p6j
transformers: Regular Expression Denial of Service (ReDoS) in huggingface/transformers
4.53.0
Affected by 1 other vulnerability.
VCID-smqc-ecxk-eqe6
Aliases:
CVE-2023-2800
GHSA-282v-666c-3fvg
PYSEC-2023-299
Insecure Temporary File in GitHub repository huggingface/transformers prior to 4.30.0.
4.30.0
Affected by 18 other vulnerabilities.
VCID-w57w-5mrk-cqbr
Aliases:
CVE-2025-5197
GHSA-9356-575x-2w9m
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.
4.53.0
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-06T07:48:26.691570+00:00 GitLab Importer Affected by VCID-aqqd-thbn-byaf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2026-1839.yml 38.6.0
2026-06-06T06:10:30.359172+00:00 GitLab Importer Affected by VCID-46y8-cawt-g7br https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-6921.yml 38.6.0
2026-06-06T06:06:23.710029+00:00 GitLab Importer Affected by VCID-s9jb-vbrz-2qa5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-6051.yml 38.6.0
2026-06-06T06:06:22.445153+00:00 GitLab Importer Affected by VCID-3gc6-hf7m-qbfn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-6638.yml 38.6.0
2026-06-06T05:57:06.631927+00:00 GitLab Importer Affected by VCID-w57w-5mrk-cqbr https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-5197.yml 38.6.0
2026-06-06T05:55:15.377724+00:00 GitLab Importer Affected by VCID-pn57-nb2x-n7gw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-3933.yml 38.6.0
2026-06-06T05:54:21.019690+00:00 GitLab Importer Affected by VCID-6p4h-2f1g-9qh2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-3263.yml 38.6.0
2026-06-06T05:54:19.267402+00:00 GitLab Importer Affected by VCID-qyfa-xf7d-n3gt https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-3264.yml 38.6.0
2026-06-06T05:54:12.710323+00:00 GitLab Importer Affected by VCID-4p99-5cwj-8fbn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-3777.yml 38.6.0
2026-06-06T05:50:02.887086+00:00 GitLab Importer Affected by VCID-7chd-q1tt-7fck https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-2099.yml 38.6.0
2026-06-06T05:48:30.881245+00:00 GitLab Importer Affected by VCID-8rrr-pemt-jkaf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2025-1194.yml 38.6.0
2026-06-06T05:42:50.366757+00:00 GitLab Importer Affected by VCID-k9e8-tqj2-gqbd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2024-12720.yml 38.6.0
2026-06-06T05:32:28.758797+00:00 GitLab Importer Affected by VCID-aud4-pr4h-r3er https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2024-11392.yml 38.6.0
2026-06-06T05:32:27.914319+00:00 GitLab Importer Affected by VCID-6jzg-ptkc-zfge https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2024-11394.yml 38.6.0
2026-06-06T05:32:27.069577+00:00 GitLab Importer Affected by VCID-mj4x-79x9-83ax https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2024-11393.yml 38.6.0
2026-06-06T04:48:44.220914+00:00 GitLab Importer Affected by VCID-3b57-p71g-tkhn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2024-3568.yml 38.6.0
2026-06-06T04:27:42.739443+00:00 GitLab Importer Affected by VCID-6wnz-1qbk-x3av https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2023-7018.yml 38.6.0
2026-06-06T04:27:32.637420+00:00 GitLab Importer Affected by VCID-re51-pz3b-xbc5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2023-6730.yml 38.6.0
2026-06-06T03:46:07.698978+00:00 GitLab Importer Affected by VCID-smqc-ecxk-eqe6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/transformers/CVE-2023-2800.yml 38.6.0
2026-06-05T17:04:33.861067+00:00 PyPI Importer Affected by VCID-7chd-q1tt-7fck https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:04:20.212425+00:00 PyPI Importer Affected by VCID-mj4x-79x9-83ax https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:04:19.906675+00:00 PyPI Importer Affected by VCID-6jzg-ptkc-zfge https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:04:19.590915+00:00 PyPI Importer Affected by VCID-aud4-pr4h-r3er https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:03:24.965482+00:00 PyPI Importer Affected by VCID-6wnz-1qbk-x3av https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:03:24.716645+00:00 PyPI Importer Affected by VCID-re51-pz3b-xbc5 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:40.416241+00:00 PyPI Importer Affected by VCID-smqc-ecxk-eqe6 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-02T04:23:04.013284+00:00 Pypa Importer Affected by VCID-7chd-q1tt-7fck https://github.com/pypa/advisory-database/blob/main/vulns/transformers/PYSEC-2025-40.yaml 38.6.0
2026-06-02T04:22:33.778204+00:00 Pypa Importer Affected by VCID-6jzg-ptkc-zfge https://github.com/pypa/advisory-database/blob/main/vulns/transformers/PYSEC-2024-229.yaml 38.6.0
2026-06-02T04:22:33.098207+00:00 Pypa Importer Affected by VCID-mj4x-79x9-83ax https://github.com/pypa/advisory-database/blob/main/vulns/transformers/PYSEC-2024-228.yaml 38.6.0
2026-06-02T04:22:32.382630+00:00 Pypa Importer Affected by VCID-aud4-pr4h-r3er https://github.com/pypa/advisory-database/blob/main/vulns/transformers/PYSEC-2024-227.yaml 38.6.0
2026-06-02T04:20:25.534491+00:00 Pypa Importer Affected by VCID-6wnz-1qbk-x3av https://github.com/pypa/advisory-database/blob/main/vulns/transformers/PYSEC-2023-301.yaml 38.6.0
2026-06-02T04:20:25.000673+00:00 Pypa Importer Affected by VCID-re51-pz3b-xbc5 https://github.com/pypa/advisory-database/blob/main/vulns/transformers/PYSEC-2023-300.yaml 38.6.0
2026-06-02T04:18:45.165414+00:00 Pypa Importer Affected by VCID-smqc-ecxk-eqe6 https://github.com/pypa/advisory-database/blob/main/vulns/transformers/PYSEC-2023-299.yaml 38.6.0