Hugging Face Transformers CVE-2025-14926
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious SEW checkpoint
-
DeliveryDeliver via model hub or direct share
-
ExploitVictim runs convert_config on checkpoint
-
ExecutionUnvalidated string executed as Python
-
ImpactArbitrary code runs as current user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to load and convert a maliciously crafted SEW model checkpoint through the convert_config function, which executes an unvalidated user-supplied string as Python code (CWE-94). The hard limiting factor is mandatory user interaction (UI:R) combined with a local attack vector (AV:L): the attacker cannot trigger this over the network and must get the target to actively process an untrusted checkpoint file. There is no authentication or privilege prerequisite on the attacker side (PR:N), and code runs only with the privileges of the user performing the conversion (S:U), not elevated. Realistic exposure is therefore limited to environments that ingest third-party/untrusted model checkpoints; pipelines that only process trusted internal models are not practically exposed. |
| Impact | This is a genuine but conditional code-execution risk rather than a mass-exploitation emergency. The CVSS 3.0 vector (CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, 7.8 HIGH) describes a local, low-complexity flaw with no privileges required but mandatory user interaction - the victim must actively load/convert an attacker-supplied SEW checkpoint. Although PR:N technically means 'unauthenticated,' the AV:L + UI:R combination makes this a social-engineering/supply-chain style issue (malicious model file) rather than a remotely-reachable network service bug, despite the title calling it 'Remote Code Execution.' Corroborating signals point to lower urgency: EPSS is only 0.34% (26th percentile), the CVE is NOT on CISA KEV, and no public exploit code is referenced. Exploitation status: no public exploit identified at time of analysis. The sole source is the Trend Micro ZDI advisory (ZDI-25-1147 / ZDI-CAN-28251), a credible vendor-coordinated disclosure, which raises confidence in the technical finding but provides no evidence of in-the-wild use. Net: prioritize patching for anyone converting untrusted model checkpoints, but this is not a drop-everything, internet-facing worm-class flaw. |
| Exploit ScenarioDerived | An attacker publishes a malicious SEW model checkpoint on a model hub or sends it directly to a victim. When a data scientist loads and converts that checkpoint, the unvalidated string in the convert_config function is executed as Python code, running arbitrary commands in the context of the current user. No public proof-of-concept is referenced, and exploitation requires the victim to perform the conversion (UI:R), consistent with the local, low-complexity CVSS vector. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Code injection in Hugging Face Transformers 4.57.0 allows arbitrary Python execution when a user converts a malicious SEW checkpoint through convert_config, running with the converting user's privileges. The assessed CVSS 3.1 vector is local with low complexity and no privileges, but requires user interaction (AV:L/AC:L/PR:N/UI:R), so attackers cannot trigger it over the network and must persuade a target to process an untrusted checkpoint. No public exploit identified at time of analysis and EPSS is 0.34%, making this a conditional risk concentrated in pipelines that ingest third-party model checkpoints.
RemediationAI
No vendor-released patch version is identified in the provided data; check the ZDI advisory (https://www.zerodayinitiative.com/advisories/ZDI-25-1147/) and Hugging Face release notes for a fixed Transformers release and upgrade to it. Until a fix is applied, do not run SEW convert_config on untrusted or third-party checkpoints; restrict conversion to vetted model artifacts and verify provenance or hashes before loading. If untrusted conversion is unavoidable, run it in a disposable container or VM with no network access, no mounted secrets, and least-privilege credentials; this reduces blast radius but may complicate GPU and filesystem access. For pipelines that do not need SEW conversion, disable or gate the conversion entry point, accepting that legitimate conversion workflows will be unavailable.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Hugging Face Transformers includes checkpoint conversion code for the SEW speech model family, and convert_config handles configuration values read from a checkpoint. The root cause is CWE-94 code injection: a user-supplied string is passed to Python code execution without validation, so a crafted checkpoint can embed Python that runs during conversion. The provided CPE identifies transformers 4.57.0 as the affected installation. Because the assessed vector is AV:L/UI:R/PR:N and scope is unchanged (S:U), code executes only in the context of the user performing the conversion, not with elevated privileges, and the attacker must first deliver a malicious checkpoint and induce the target to convert it.
Know when Transformers gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Local because exploitation requires processing an attacker-supplied checkpoint file (AV:L, UI:R); no attacker privileges needed (PR:N), and code injection yields full C/I/A impact in the user's context (S:U).
Primary rating from Vendor (trendmicro).
CVSS VectorVendor: trendmicro
DescriptionCVE.org
Hugging Face Transformers SEW convert_config Code Injection 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 convert a malicious checkpoint.
The specific flaw exists within the convert_config function. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-28251.
Blast Radius
ecosystem impact- 7 pypi packages depend on transformers (7 direct, 0 indirect)
Ecosystem-wide dependent count for version 4.57.0.
Executive ViewAI
Hugging Face Transformers 4.57.0 contains a high-severity code-injection flaw in the SEW checkpoint conversion path that can let a crafted model run arbitrary Python with the converting user's permissions. The risk is concentrated in teams that ingest third-party model artifacts, where a single untrusted checkpoint could compromise developer workstations or build pipelines; no public exploit identified at time of analysis. Leadership should treat this as a model-supply-chain governance issue rather than a network-facing exposure.
No vendor-released patch identified at time of analysis. Interim mitigations: prohibit conversion of untrusted SEW checkpoints; verify checkpoint provenance and hashes; run conversions in an isolated, low-privilege environment without credentials or network access; restrict Hugging Face Transformers 4.57.0 conversion workflows to approved users and artifacts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
More in Transformers
View allThe huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository,
The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (R
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, spe
Remote code execution in Hugging Face Transformers 5.2.0 allows a malicious model repository to bypass the user's explic
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, sp
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, sp
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, sp
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, sp
Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. Rated high s
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB