---
id: CVE-2025-65213
title: >-
  MooreThreads torch_musa through all versions contains an unsafe
  deserialization vulnerability in torch_musa.utils.compare_tool
summary: >-
  MooreThreads torch_musa through all versions contains an unsafe
  deserialization vulnerability in torch_musa.utils.compare_tool. The
  compare_for_single_op() and nan_inf_track_for_single_op() functions use
  pickle.load() on user-controlled …
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-502
vendor: mthreads
product: torch_musa
affected:
  - torch_musa
published: '2025-12-15'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T13:10:00.187'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-65213'
references:
  - url: >-
      https://github.com/MooreThreads/torch_musa/issues/110#issuecomment-3475809588
    label: cve@mitre.org
tags:
  - nvd
epss: 0.00737
epssPercentile: 0.5329
ingestedAt: '2026-10-14T13:30:58.432Z'
---

## Overview

MooreThreads torch_musa through all versions contains an unsafe deserialization vulnerability in torch_musa.utils.compare_tool. The compare_for_single_op() and nan_inf_track_for_single_op() functions use pickle.load() on user-controlled file paths without validation, allowing arbitrary code execution. An attacker can craft a malicious pickle file that executes arbitrary Python code when loaded, enabling remote code execution with the privileges of the victim process.

## Affected

- `torch_musa`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
