Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious pickle-embedded PyTorch checkpoint
-
DeliveryHost or distribute checkpoint via model hub, email, or shared storage
-
ExploitSocial engineer victim into loading checkpoint as a pretrained or fine-tuned model
-
ExecutionESPnet calls torch.load with weights_only=False
-
PersistPickle payload deserializes and executes attacker code
-
ImpactArbitrary command execution as ESPnet process user
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 | The victim must load an attacker-supplied PyTorch checkpoint file through one of ESPnet's four vulnerable code paths: (1) pretrained model loading via espnet2/torch_utils/load_pretrained_model.py (used during initialization and transfer learning), (2) model build and fine-tuning via espnet2/tasks/abs_task.py, (3) N-best model averaging via espnet2/main_funcs/average_nbest_models.py, or (4) speech LM inference via espnet2/speechlm/bin/inference.py. The ESPnet installation must be a version earlier than v.202609. No server-side configuration is required - exploitation is entirely client-side, occurring on the machine running ESPnet. The primary limiting factor is user interaction: the victim must actively choose to load the malicious file. This is a realistic condition in ML research and engineering workflows, where downloading and testing third-party pretrained checkpoints is routine. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N) is broadly sound but requires contextual framing. UI:P correctly captures that the victim must actively load the malicious checkpoint - this is not a zero-click or purely network-triggered exploit. Real-world risk is primarily a function of trust culture in ML research workflows: researchers and engineers routinely download and load community checkpoints from model hubs, shared lab storage, or collaborators, making the social-engineering surface substantial. No CISA KEV listing is present in the input data. EPSS data was not provided, so exploitation probability cannot be quantified. No public exploit code has been identified at time of analysis, though the underlying pickle gadget technique is extensively documented and trivially implementable. The narrow deployment footprint of ESPnet (primarily research and specialized production) limits population-scale blast radius, but high-value targets such as research labs or ML infrastructure pipelines could be meaningfully impacted. |
| Exploit ScenarioDerived | An attacker publishes a malicious ESPnet-compatible checkpoint on a public model repository or delivers it directly to a target researcher via email or a shared file system. When the victim loads the checkpoint through a routine fine-tuning or inference command, ESPnet's torch.load call deserializes the embedded pickle payload, executing attacker-supplied operating system commands with the full privileges of the Python process - potentially granting shell access, credential theft, or data exfiltration on the research workstation or cluster node. No public exploit code has been identified, but the required pickle crafting technique is extensively published. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 13, 2026
Arbitrary code execution in ESPnet before v.202609 is triggered when a user loads an attacker-crafted PyTorch checkpoint through any of the framework's model initialization, fine-tuning, or averaging pipelines. The root cause is CWE-502 (Deserialization of Untrusted Data): ESPnet called torch.load with weights_only=False across at least four distinct code paths, allowing pickle-embedded payloads to execute arbitrary commands with the privileges of the ESPnet process. No public exploit has been identified at time of analysis, but the attack technique - crafting malicious PyTorch pickle checkpoints - is thoroughly documented in the ML security community and requires minimal skill to reproduce.
RemediationAI
Upgrade ESPnet to v.202609 or later, available at https://github.com/espnet/espnet/releases/tag/v.202609. The patch (commit 91ca045fc179f29bc7b7fe05cd852aea65310003) replaces all torch.load(weights_only=False) calls with a new safe_torch_load wrapper that defaults to weights_only=True. Unsafe loading is only permitted with explicit opt-in via the ESPNET_ALLOW_UNSAFE_TORCH_LOAD environment variable or an interactive TTY confirmation phrase, with a clear security warning printed. Until patching is feasible, strictly limit model checkpoint loading to files from verified, integrity-checked sources - avoid loading any checkpoint from public community model hubs, shared storage, or unverified collaborators. As a compensating control, administrators running ESPnet in shared infrastructure should consider sandboxing ESPnet processes (e.g., via container isolation or restricted OS users) so that any code executed via a malicious checkpoint cannot reach sensitive resources. Note that process sandboxing does not prevent code execution - it only limits blast radius.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ESPnet (cpe:2.3:a:espnet:espnet:*:*:*:*:*:*:*:*) is an end-to-end speech processing toolkit built on PyTorch, widely used in academic research and some production deployments for ASR, TTS, and speech language modeling. The vulnerability is rooted in CWE-502: PyTorch's torch.load function, when called with weights_only=False, uses Python's pickle protocol for full checkpoint deserialization. Pickle is inherently unsafe for untrusted data because it evaluates arbitrary Python objects via __reduce__ during deserialization - any object embedded in the checkpoint file can trigger code execution before the model weights are ever inspected. The vulnerable calls were spread across at least four files: espnet2/torch_utils/load_pretrained_model.py (L99, pretrained model loading), espnet2/tasks/abs_task.py (model build and fine-tuning), espnet2/main_funcs/average_nbest_models.py (N-best model averaging), and espnet2/speechlm/bin/inference.py (speech LM inference). The fix introduces a safe_torch_load wrapper that defaults to weights_only=True and gates any unsafe fallback behind an explicit environment variable (ESPNET_ALLOW_UNSAFE_TORCH_LOAD) or interactive TTY confirmation.
Know when Espnet 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attacker delivers malicious checkpoint remotely; victim must load it (UI:R); successful deserialization yields full code execution (C/I/A:H); scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
ESPnet before 202609 deserializes pretrained model checkpoints using torch.load with weights_only=False, allowing arbitrary code execution from attacker-supplied files. Attackers can craft malicious checkpoint files that execute code during deserialization when loaded through the initialization or fine-tuning path.
Technical POC Analysis
CWE-502 (Deserialization of Untrusted Data).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
ESPnet, an open-source speech recognition framework deployed across research and production ML pipelines, contains a code execution vulnerability allowing attackers to compromise systems through malicious model checkpoints. While no public exploit has been identified at time of analysis, the underlying attack technique is well-documented in the machine learning security community and requires minimal technical sophistication. Organizations using ESPnet face immediate risk to model infrastructure, training data, and any systems processing the affected deployments.
Apply vendor patch.
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.
EUVD-2026-77001
GHSA-r7rw-fc94-3p58
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB