---
id: CVE-2024-11393
aliases:
  - GHSA-wrfc-pvp9-mr9g
  - PYSEC-2024-228
title: Deserialization of Untrusted Data in Hugging Face Transformers
summary: Deserialization of Untrusted Data in Hugging Face Transformers
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
vendor: transformers
product: transformers
ecosystem: pip
affected:
  - transformers < 4.48.0
patched:
  - transformers 4.48.0
published: '2024-11-23'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:55.987633957Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-wrfc-pvp9-mr9g'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-11393'
  - url: 'https://github.com/huggingface/transformers/issues/34840'
  - url: 'https://github.com/huggingface/transformers/pull/35296'
  - url: 'https://github.com/huggingface/transformers'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/transformers/PYSEC-2024-228.yaml
  - url: 'https://www.zerodayinitiative.com/advisories/ZDI-24-1514'
tags:
  - osv
  - pip
  - exploit-available
epss: 0.03074
epssPercentile: 0.87128
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/Piyush-Bhor/CVE-2024-11393'
  checkedAt: '2026-09-26T09:05:30.749Z'
exploitAvailable: true
zeroDay: true
ingestedAt: '2026-09-12T03:13:01.737Z'
---

## Overview

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.

## Affected packages

- `transformers < 4.48.0`

## Remediation

Upgrade to a patched release:

- `transformers 4.48.0`
