PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
cve-program · CVE-2026-24747
PublishedPyTorch 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-24747 · CVE overview and exploitation status
cve-program · CVE-2026-24747
Related changes
Linked by CVE identifierNo related changes are available here.