External risk intelligence

MooreThreads TorchMusa Unsafe Deserialization Leads to Code Execution

CVE advisorySeverity: CRITICAL (CVSS 9.8)

CVE-2025-65213

The vulnerability exists in a specialized machine learning utility library (torch_musa) used for model development and debugging. These tools are typically executed in isolated developer environments, build pipelines, or local research workstations. They are not designed to be internet-facing services, gateways, or web applications, making public network exposure highly unlikely in common real-world deployments.

Deserialization

Mthreads Torch Musa

Halo Surface Signal: 1 out of 5 — much less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability in MooreThreads' torch_musa software allows for arbitrary code execution by loading a malicious file, potentially enabling attackers to run unauthorized commands on affected systems. This could impact systems where this specialized machine learning utility is deployed.

  • Unsafe file loading can execute attacker code.
  • Matters if this ML utility is in your environment.
  • Confirm relevance; it affects ML development tools.

Attack Path

How an attacker could exploit the issue

An attacker can exploit this vulnerability by tricking a user into loading a specially crafted pickle file. This file can be loaded through user-controlled file paths within the `compare_for_single_op()` or `nan_inf_track_for_single_op()` functions, leading to arbitrary code execution. The attacker can then achieve remote code execution with the same permissions as the running application.

  • No special access needed.
  • Load malicious pickle file.
  • Arbitrary code execution.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an attacker to execute arbitrary Python code on a system running torch_musa when a specially crafted pickle file is loaded. This could impact the confidentiality, integrity, and availability of the affected system.

  • Arbitrary code execution on the system.
  • Loading a malicious pickle file.
  • System compromise.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability resides in `torch_musa`, a library likely used by machine learning engineers and data scientists for model development and debugging. Responsibility for remediation will likely fall to the teams managing ML development environments, CI/CD pipelines, or custom research infrastructure. The immediate first step is to identify all instances of `torch_musa`, confirm their reachability and criticality, and then engage the accountable ML or infrastructure owner to plan remediation based on identified risk.

  • ML and Infrastructure teams should own this.
  • Verify ML dev environments and pipelines.
  • Plan remediation based on exposure and criticality.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is MooreThreads torch_musa?

torch_musa is a specialized library designed for machine learning development. It provides utilities that engineers and data scientists use to build, debug, and track operations within machine learning models when working with MooreThreads hardware acceleration.

Why is CVE-2025-65213 considered an unsafe deserialization vulnerability?

The software uses the pickle module to load files without verifying their contents. Because pickle is designed to reconstruct complex Python objects, loading a maliciously crafted file allows the software to execute unintended, arbitrary code embedded within that file during the loading process.

How does an attacker trigger this vulnerability?

An attacker must trick a user or system into processing a malicious pickle file through the compare_for_single_op or nan_inf_track_for_single_op functions. Simply having the library installed is not enough; the bug is only triggered when these specific functions are invoked on a compromised file path.

Is my system at risk of this vulnerability?

According to Halo Surface Signal, this vulnerability is very unlikely to be exposed to the internet. Because torch_musa is a tool for model development and debugging, it is typically restricted to isolated developer workstations, internal build pipelines, or research environments rather than public-facing services.

What steps should I take if I use torch_musa?

First, perform an inventory to locate all environments where torch_musa is deployed, such as developer workstations or CI/CD pipelines. Once located, verify if your workflows handle untrusted or externally sourced files using these utility functions, and coordinate with your machine learning infrastructure team to manage the risk.

References