Hugging Face Transformers CVE-2025-14930
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost malicious GLM4 weights file
-
ExploitVictim loads untrusted model
-
ExecutionUnsafe deserialization of weights
-
ImpactArbitrary code execution in process context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
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 an attacker-supplied, malicious GLM4 model/weights file using Hugging Face Transformers (version 4.57.1 per CPE); the vulnerable code path is the parsing/deserialization of model weights. Limiting factors: the CVSS vector is LOCAL (AV:L) and mandates user interaction (UI:R) - there is no remotely reachable attack surface, so an attacker cannot trigger it without the victim opening/loading the crafted file or visiting a malicious page that causes a load. No authentication or special privileges are needed (PR:N), and no non-default configuration is called out, so any workflow that loads untrusted/third-party models is exposed; environments that only load trusted, locally-produced weights are not realistically reachable. |
| Impact | This is a genuine high-severity flaw (CVSS 7.8, CVSS:3.0/AV:L/AC:L/PR:N/UI:R) but the real-world risk signals point to opportunistic, not mass, exploitation. The vector is explicitly LOCAL (AV:L) with required user interaction (UI:R): despite the title calling it 'Remote Code Execution' and the description saying 'remote attackers', actual code execution requires the victim to load/open an attacker-supplied malicious model file - this is the standard ZDI file-format framing where 'remote' means remote delivery, not a remotely reachable listener. No privileges are needed (PR:N) and complexity is low (AC:L), so once a malicious weights file is opened, exploitation is reliable. Exploitation probability is low: EPSS is 0.33% (25th percentile), there is NO CISA KEV listing, and NO public exploit code is referenced - only a ZDI advisory. The signals are internally consistent (low EPSS + no KEV + user-interaction requirement all agree this is not wormable/mass-exploited). Priority should be driven by exposure to untrusted model files (the AI/ML supply-chain threat model), not by raw CVSS. Note: the CVSS vector is CVSS:3.0, not 3.1, and the input provides no SSVC decision data, so automatable/technical-impact framework inputs are absent. |
| Exploit ScenarioDerived | An attacker publishes a malicious GLM4 model (crafted weights file) to a model hub or sends it directly to a victim. When a developer or ML pipeline loads the model with Hugging Face Transformers, the untrusted data is deserialized (CWE-502) and attacker-controlled code executes in the context of the loading process. No public exploit code is identified at time of analysis, and user interaction (loading the file) is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Deserialization of crafted GLM4 model weights in Hugging Face Transformers 4.57.1 can execute arbitrary code in the context of the loading process when a victim opens or loads an attacker-supplied model file. The issue is high severity (CVSS 7.8) but local and user-interaction dependent (AV:L/UI:R), not a remotely reachable service vulnerability, and exploitation requires workflows that ingest untrusted or third-party model artifacts. No public exploit code or confirmed active exploitation was identified at time of analysis; EPSS is 0.33% (25th percentile), consistent with opportunistic rather than mass exploitation.
RemediationAI
No vendor-released patch or fixed version is identified in the supplied data; consult the ZDI advisory at https://www.zerodayinitiative.com/advisories/ZDI-25-1145/ and Hugging Face release notes, and upgrade to a release explicitly confirmed to address ZDI-CAN-28309 when available. Until then, do not load GLM4 or other model weights from untrusted sources, and restrict production model loading to vetted artifacts with checksum and provenance verification. Prefer safetensors or other non-executable serialization formats where the model is available in that format; the trade-off is reduced compatibility with models distributed only as pickle-based .bin weights. Run model loading and conversion in a low-privilege, network-isolated container without cloud credentials or sensitive mounts, because successful exploitation executes in the current process; this limits blast radius but does not prevent the code execution itself. Disable automatic downloading of remote model artifacts in production and require explicit allowlisting, accepting that this can break workflows relying on dynamic model fetching.
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
The root cause is CWE-502, deserialization of untrusted data, in Hugging Face Transformers 4.57.1 as identified by CPE cpe:2.3:a:huggingface:transformers:4.57.1:*:*:*:*:*:*:*. The vulnerable code path is the parsing of GLM4 model weights; model artifacts can contain serialized data that the library deserializes without sufficient validation, allowing a crafted weights file to trigger code execution during loading. The assessed vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H: no credentials are required, but the attacker must get the victim to open or load the malicious file, or visit a page that causes such a load, because the attack surface is local rather than remotely reachable. Successful exploitation executes code in the current process with high confidentiality, integrity, and availability impact; mitigations therefore focus on artifact provenance, safer serialization formats, and process isolation rather than network filtering.
Know when Hugging Face 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
Code executes only when a victim loads a malicious weights file, so AV:L and UI:R; no privileges needed (PR:N), and arbitrary code execution yields full C/I/A impact.
Primary rating from Vendor (trendmicro).
CVSS VectorVendor: trendmicro
DescriptionCVE.org
Hugging Face Transformers GLM4 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 weights. 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 process. Was ZDI-CAN-28309.
Blast Radius
ecosystem impact- 41 pypi packages depend on transformers (37 direct, 4 indirect)
Ecosystem-wide dependent count for version 4.57.1.
Executive ViewAI
Hugging Face Transformers 4.57.1 creates a model-supply-chain exposure for organizations that load third-party or untrusted GLM4 model artifacts, with potential code execution in the context of the model-loading process. Leadership should care because affected ML engineering and data-science workflows often hold sensitive credentials and data, even though exploitation requires local user interaction rather than a remotely reachable service. No public exploit identified at time of analysis, so prioritization should focus on governance of model ingestion and isolation of ML workflows.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict model loading to trusted, verified artifacts; enforce provenance and signature validation; scan GLM4 model files before loading; run model loading in isolated, least-privilege environments; disable automatic remote model fetching; and monitor ML environments for anomalous process or code execution.
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
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
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 Hugging Face
View allThe huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data
Unauthenticated remote code execution in HuggingFace LeRobot (versions 0 through 0.5.1) stems from pickle.loads() being
Arbitrary Python code execution in LMDeploy 0.12.1 through 0.12.2 lets an attacker who publishes a malicious model on Hu
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS
Deserialization of attacker-supplied pickle data in the deprecated pandas packaged builder of Hugging Face Datasets (all
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
Path traversal in Hugging Face Datasets up to 5.0.0 allows attackers to read arbitrary local files when a victim process
Server-side request forgery in HuggingFace text-generation-inference through version 3.3.7 enables unauthenticated remot
Path traversal in Hugging Face Accelerate through 1.14.0 exposes two distinct attack outcomes when a user loads a crafte
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, spe
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB