Skip to content
OpenAdvisories
High · 8.8 CVE-2026-24747 BIT-pytorch-2026-24747EUVD-2026-4738GHSA-63cw-57p8-fm3pPYSEC-2026-1856PYSEC-2026-2286

PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files

Published Jan 27, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
pytorch pytorch < 2.10.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pytorch 2.12.0+dfsg2-1 —
Debian 13 pytorch No fix yet —
Debian 12 pytorch No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pytorch No fix yet —
Ubuntu 26.04 LTS pytorch No fix yet —
Ubuntu 25.10 pytorch No fix yet —
Ubuntu 22.04 LTS pytorch No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pytorch 2.2.2-11 —
Azure Linux 2 (CBL-Mariner) pytorch 2.0.0-14 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pytorch < 2.10.0 2.10.0 PYSEC-2026-1856
PyPI torch < 2.10.0 2.10.0 GHSA-63cw-57p8-fm3p

Advisories 1

References