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 (`.
Research is free — Hunters explains how the bug works, the root-cause code pattern, how the fix addresses it, and how to test whether a target is affected, in chat. Investigate & write exploit is a paid run — the engine reads the advisory and fix commits, then builds and validates a working proof-of-concept exploit with reproduction steps.
Affected versions
0 → fixed in 2.10.0
Details
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.
The fix
No fix commit could be resolved for this advisory (it may reference an issue tracker or a non-GitHub patch). See the references below.
References
- WEBhttps://access.redhat.com/security/cve/CVE-2026-24747
- WEBhttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24747.json
- ADVISORYhttps://access.redhat.com/errata/RHSA-2026:24977
- ADVISORYhttps://github.com/pytorch/pytorch/releases/tag/v2.10.0
- ADVISORYhttps://github.com/pytorch/pytorch/security/advisories/GHSA-63cw-57p8-fm3p
- REPORThttps://bugzilla.redhat.com/show_bug.cgi?id=2433612
- REPORThttps://github.com/pytorch/pytorch/issues/163105
- FIXhttps://github.com/pytorch/pytorch/163122/commit/954dc5183ee9205cbe79876ad05dd2d9ae752139