CVE-2026-90777

8.8

ESPnet · espnet

ESPnet allows arbitrary code execution via unsafe deserialization of pretrained model checkpoints when using torch.load with weights_only set to False.

Executive summary

A critical arbitrary code execution vulnerability in ESPnet allows attackers to compromise systems by providing malicious model checkpoint files.

Vulnerability

The vulnerability exists due to the use of unsafe deserialization (CWE-502) in the load_pretrained_model function, where torch.load is called with weights_only=False. This enables an unauthenticated attacker to execute arbitrary code during the initialization or fine-tuning process if they can supply a malicious checkpoint file.

Business impact

The ability to achieve remote code execution poses a severe threat to system integrity and confidentiality. By leveraging this flaw, an attacker could gain full control over the application environment, potentially leading to unauthorized data access, lateral movement within the network, or total system compromise. Given the CVSS score of 8.8, this vulnerability represents a high-risk entry point for malicious actors targeting deep learning infrastructure.

Remediation

Immediate Action: Update the ESPnet software to version 202609 or later to implement the required security constraints on model loading.

Proactive Monitoring: Monitor system logs for unexpected file access patterns or execution requests originating from the model initialization and fine-tuning modules.

Compensating Controls: Restrict the ability of external or untrusted users to upload or supply model checkpoint files to the application. Ensure that all loaded model files originate from verified and trusted sources to prevent the introduction of malicious payloads.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

This vulnerability presents a significant risk to any environment utilizing ESPnet for model training or inference. Organizations should prioritize upgrading to the patched version immediately to eliminate the underlying deserialization risk. Failure to apply this update leaves the application susceptible to full system compromise through the loading of manipulated checkpoint files.

History

  1. Disclosed CVE record published
  2. Collected by CVE Brief via github
  3. Analyst report written
  4. Published in the daily brief high section

Sources

Originally found and disclosed by Jaime Ramírez (JaimeRamirez-coder), arexgodofwar, Snakinya, per the CVE Program record.