8.8High

CVE-2026-24747PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files

pytorch pytorch; Red Hat Red Hat OpenShift AI 2.25; Red Hat Red Hat OpenShift AI (RHOAI) Published: (9 months ago)

Description

PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's `weights_only` unpickler allows an attacker to craft a malicious checkpoint file (`.pth`) that, when loaded with `torch.load(..., weights_only=True)`, can corrupt memory and potentially lead to arbitrary code execution. Version 2.10.0 fixes the issue.

Weakness (CWE): CWE-502CWE-94

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
linuxfoundation pytorch < 2.10.0
openshift ai 2.25 —
pytorch pytorch < 2.10.0
Red Hat Red Hat OpenShift AI 2.25 all versions
Red Hat Red Hat OpenShift AI (RHOAI) —

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:* < 2.10.0