Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. transformers
  4. ›
  5. CVE-2024-11394

CVE-2024-11394: Deserialization of Untrusted Data in Hugging Face Transformers

November 23, 2024 (updated February 13, 2025)

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

  • github.com/advisories/GHSA-hxxf-235m-72v3
  • github.com/huggingface/transformers
  • github.com/huggingface/transformers/issues/34840
  • github.com/huggingface/transformers/pull/35296
  • github.com/pypa/advisory-database/tree/main/vulns/transformers/PYSEC-2024-229.yaml
  • nvd.nist.gov/vuln/detail/CVE-2024-11394
  • www.zerodayinitiative.com/advisories/ZDI-24-1515

Code Behaviors & Features

Detect and mitigate CVE-2024-11394 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.48.0

Fixed versions

  • 4.48.0

Solution

Upgrade to version 4.48.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

pypi/transformers/CVE-2024-11394.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:13 +0000.