---
id: CVE-2024-11394
title: >-
  transformers: Hugging Face Transformers Trax Model Deserialization of
  Untrusted Data Remote Code Execution Vulnerability (CVE-2024-11394)
summary: >-
  A flaw was found in the Trax model of the Hugging Face Transformers library.
  The issue results from the lack of proper validation of user-supplied data,
  which can result in deserialization of untrusted data. This flaw allows an
  attacker to…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: vendor
cwe: CWE-502
vendor: Red Hat
product: transformers
affected:
  - transformers < 4.48.0
patched:
  - transformers 4.48.0
published: '2024-11-22'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T11:07:01+00:00'
source: CSAF
sourceUrl: 'https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-11394.json'
references:
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-11394.json
  - url: 'https://access.redhat.com/security/cve/CVE-2024-11394'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2328333'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2024-11394'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-11394'
  - url: 'https://www.zerodayinitiative.com/advisories/ZDI-24-1515/'
  - 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-229.yaml
  - url: 'https://www.zerodayinitiative.com/advisories/ZDI-24-1515'
tags:
  - csaf
  - vex
  - red-hat
  - exploit-available
  - osv
  - pip
epss: 0.02566
epssPercentile: 0.85047
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/Piyush-Bhor/CVE-2024-11394'
  checkedAt: '2026-10-27T16:41:45.754Z'
exploitAvailable: true
zeroDay: true
aliases:
  - GHSA-hxxf-235m-72v3
  - PYSEC-2024-229
ecosystem: pip
ingestedAt: '2026-09-12T03:13:01.703Z'
---

## Overview

A flaw was found in the Trax model of the Hugging Face Transformers library. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. This flaw allows an attacker to execute code in the context of the current user.

## Vendor advisories

- **Red Hat VEX** · Important · updated 2026-10-15 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-11394.json)

**transformers: Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability** — rated Important by Red Hat. Released 2024-11-22, updated 2026-10-15.

Not affected:

- OpenShift Lightspeed
- Red Hat Enterprise Linux AI (RHEL AI)

## Remediation

Refer to the advisory for fix availability.

## Package advisory (CVE-2024-11394)

Affected packages:

- `transformers < 4.48.0`

Patched in:

- `transformers 4.48.0`

Source: https://osv.dev/vulnerability/GHSA-hxxf-235m-72v3
