Description
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.
Published: 2026-09-13
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

ESPnet prior to version v.202609 incorrectly deserializes pretrained model checkpoints with torch.load, leaving weights_only=False. This permissive setting allows any Python code embedded in the checkpoint to execute when the file is loaded. An attacker who supplies a malicious checkpoint can therefore run arbitrary code with the privileges of the ESPnet process. The vulnerability is a classic unsafe deserialization flaw (CWE‑502) that directly compromises confidentiality, integrity, and availability of the host system.

Affected Systems

All releases of the ESPnet toolkit older than v.202609 are affected. The defect resides in espnet2/torch_utils/load_pretrained_model.py, line 99, which uses torch.load without restricting the deserialization context. Any system that loads pretrained models via the initialization or fine‑tuning paths is vulnerable, regardless of the terminology used for the models. Users running ESPnet on local machines or remote servers must verify that their installed version predates the v.202609 release.

Risk and Exploitability

The CVSS score of 8.7 reflects a high severity. EPSS data are not available, and the vulnerability is currently absent from CISA’s KEV catalog. Exploitation requires the attacker to provide a malicious model checkpoint file that the ESPnet process will load. The likely attack vector is a local compromise where an attacker injects a crafted checkpoint, or a remote attack if the system accepts model files from untrusted sources or exposes an API that triggers the load function. The described vulnerability permits code execution with the rights of the ESPnet process, meaning full system compromise is possible if the process runs with administrative privileges.

Generated by OpenCVE AI on September 13, 2026 at 17:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ESPnet to release v.202609 or later where torch.load is invoked with weights_only=True to restrict code execution during deserialization.
  • If upgrading is not possible, avoid loading checkpoints from untrusted sources; explicitly set weights_only=True when calling torch.load or modify the load_pretrained_model function to enforce safe deserialization.
  • Restrict the directories from which ESPnet can load pretrained models, and remove any ability for external users to supply model files; consider configuring file access controls and disabling the fine‑tuning path if unused. Keep monitoring system logs for failed deserialization attempts.

Generated by OpenCVE AI on September 13, 2026 at 17:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 13 Sep 2026 11:45:00 +0000

Type Values Removed Values Added
Description 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.
Title ESPnet before 202609 Remote Code Execution via Unsafe Deserialization
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-13T11:42:27.045Z

Reserved: 2026-09-13T11:15:46.288Z

Link: CVE-2026-90777

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-13T12:17:16.690

Modified: 2026-09-13T12:17:16.690

Link: CVE-2026-90777

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-13T17:15:06Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data