Description
PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.
Problem types
CWE-502: Deserialization of Untrusted Data
Product status
References
lists.debian.org/debian-lts-announce/2025/12/msg00000.html
github.com/...ytorch/security/advisories/GHSA-53q9-r3pm-6pq6