Vulnerability · Published Jan 27, 2026 · Assigned by GitHub_M

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

High 8.8

In plain English

A high-severity unsafe deserialization in pytorch from pytorch. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.8%top 43.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pytorchno fix listedDEBIAN-CVE-2026-24747
Debian:13pytorchno fix listedDEBIAN-CVE-2026-24747
Debian:14pytorch2.12.0+dfsg2-1DEBIAN-CVE-2026-24747
PyPIpytorch2.10.0PYSEC-2026-1856
PyPItorch2.10.0GHSA-63cw-57p8-fm3p
PyPItorch2.10.0PYSEC-2026-2286
Ubuntu:22.04:LTSpytorchno fix listedUBUNTU-CVE-2026-24747
Ubuntu:25.10pytorchno fix listedUBUNTU-CVE-2026-24747
Ubuntu:26.04:LTSpytorchno fix listedUBUNTU-CVE-2026-24747
Ubuntu:26.10pytorchno fix listedUBUNTU-CVE-2026-24747

Affected products (as reported)

VendorProductVersions
pytorch pytorch < 2.10.0

Weakness: CWE-502, CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References