AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

PyTorchPYSEC-2026-2286

PyTorch: code execution

PyTorch

CVE-2026-24747 · Published Jan 27, 2026 · updated Jul 13, 2026

High8.8
Fix: upgrade to 2.10.0 or later
Source advisory

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 versions

PackageAffectedFixed in
torch
PyPI
< 2.10.02.10.0
Details and references

More PyTorch advisories

All PyTorch