VDB
Sign up
CRITICAL9.8

PYSEC-2025-41

Quick fix

PYSEC-2025-41 — torch: upgrade to the fixed version with the command below.

pip install --upgrade 'torch>=2.6.0'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/torch
Introduced in: 0Fixed in: 2.6.0
Fixpip install --upgrade 'torch>=2.6.0'

References