Cyber Resilience

CVE-2024-11393

RCE in Huggingface Transformers ≤ 4.48.0

Published
22 November 2024
Modified
10 February 2025
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.029 86th percentile
Risk Priority 90 floored blend · peak EPSS

Summary

CVE-2024-11393 is a high-severity Deserialization of Untrusted Data (CWE-502) vulnerability in Huggingface Transformers. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 14% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

This vulnerability is AI-related — categorised as NLP and Transformers; in the Supply Chain and Deployment risk domain.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2024-11393 is a deserialization of untrusted data vulnerability, tracked as CWE-502, that affects Hugging Face Transformers when parsing MaskFormer model files. The flaw stems from insufficient validation of user-supplied data during model file processing and carries a CVSS 3.1 score of 8.8.

Remote attackers can exploit the issue without authentication by supplying a malicious model file or page; successful exploitation results in arbitrary code execution in the context of the current user, though user interaction is required to trigger the payload.

The single referenced advisory from the Zero Day Initiative (ZDI-24-1514) confirms the vulnerability was originally reported as ZDI-CAN-25191 but does not detail specific patches or workarounds in the supplied information.

The vulnerability impacts an AI/ML framework component, and its EPSS score has remained steady at a peak of 0.7953 since disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

AI Security AnalysisAI

AI Category
NLP and Transformers
Risk Domain
Supply Chain and Deployment
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
The vulnerability affects Hugging Face Transformers library, specifically in handling the MaskFormer model during deserialization of model files. Hugging Face Transformers is a core library for transformer-based models, primarily associated with NLP and transformer architectures, even though MaskFormer is used for computer vision tasks.

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-14924Same product: Huggingface Transformers
CVE-2025-14929Same product: Huggingface Transformers
CVE-2025-14920Same product: Huggingface Transformers
CVE-2025-14930Same product: Huggingface Transformers
CVE-2024-11392Same product: Huggingface Transformers
CVE-2024-11394Same product: Huggingface Transformers
CVE-2024-3568Same product: Huggingface Transformers
CVE-2023-7018Same product: Huggingface Transformers
CVE-2023-6730Same product: Huggingface Transformers
CVE-2025-14921Same product: Huggingface Transformers

Affected Assets

huggingface
transformers
≤ 4.48.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation can uncover deserialization flaws before deployment.

Input validation directly stops deserialization of untrusted data by ensuring inputs are valid before processing.

Engineering principles such as safe deserialization and input sanitization structurally prevent the weakness from being introduced.

Integrity verification tools can detect malformed or tampered serialized data after the fact.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-02 none match
prevents

PR.PS-02 addresses only post-deployment updates/patching and cannot prevent introduction of unsafe deserialization code, yet it can remediate some instances when the flaw exists in outdated libraries or components.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing includes validation of deserialization routines and the use of untrusted data, reducing the likelihood that unsafe object reconstruction will be deployed.

prevents

Requiring vetted libraries, regular updates and SAST before release reduces the likelihood that deserialization logic will accept and act on attacker-controlled serialized objects.

finds

Regular scanning of third-party libraries and timely patching reduce the likelihood that unsafe deserialization vulnerabilities remain active.

none

Mandatory malware scanning of data received over networks or storage media intercepts malicious serialized payloads before they are deserialized by the target application.

References