Skip to main content

Hugging Face Transformers CVE-2025-14926

HIGH
Code Injection (CWE-94)
2025-12-23 zdi-disclosures@trendmicro.com
7.8
CVSS 3.0 · Vendor: trendmicro
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious SEW checkpoint
  2. Delivery
    Deliver via model hub or direct share
  3. Exploit
    Victim runs convert_config on checkpoint
  4. Execution
    Unvalidated string executed as Python
  5. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi transformers no fix

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

Vendor (trendmicro) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

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).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.8 HIGH

Primary rating from Vendor (trendmicro).

CVSS VectorVendor: trendmicro

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 7 pypi packages depend on transformers (7 direct, 0 indirect)

Ecosystem-wide dependent count for version 4.57.0.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 74% exploitable
Prevalence
High
Hugging Face Transformers is among the most widely used ML libraries
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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

cpe:2.3:a:huggingface:transformers:4.57.0:*:*:*:*:*:*:*
CVE-2024-3568 CRITICAL POC
9.6 Apr 10

The huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data

CVE-2023-6730 HIGH POC
8.8 Dec 19

Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS

CVE-2023-7018 HIGH POC
7.8 Dec 20

Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS

CVE-2025-3262 HIGH POC
7.5 Jul 07

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository,

CVE-2025-6921 HIGH POC
7.5 Sep 23

The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (R

CVE-2025-1194 MEDIUM POC
6.5 Apr 29

A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, spe

CVE-2026-5241 CRITICAL
9.6 Jun 03

Remote code execution in Hugging Face Transformers 5.2.0 allows a malicious model repository to bypass the user's explic

CVE-2025-3264 MEDIUM POC
5.3 Jul 07

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, sp

CVE-2025-3263 MEDIUM POC
5.3 Jul 07

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, sp

CVE-2025-6051 MEDIUM POC
5.3 Sep 14

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, sp

CVE-2025-3933 MEDIUM POC
5.3 Jul 11

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, sp

CVE-2024-11394 HIGH POC
8.8 Nov 22

Hugging Face Transformers Trax Model Deserialization of Untrusted Data Remote Code Execution Vulnerability. Rated high s

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy