PyTorch
cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:python:*:*
- <= 2.5.1
A remote command execution vulnerability has been identified in PyTorch versions through 2.5.1. The issue arises when loading a model with the 'torch.load' function using the 'weights_only=True' option. Despite the official documentation suggesting this method is safe, it has been demonstrated that it can still lead to remote command execution. This vulnerability has been patched in PyTorch version 2.6.0.
Exploitation of this vulnerability allows for remote command execution on the system where PyTorch is running.
To reproduce this vulnerability, load a model using the 'torch.load' function with the 'weights_only' parameter set to 'True' in PyTorch versions through 2.5.1. This will trigger the remote command execution vulnerability, despite the 'weights_only=True' option being intended as a safeguard.
Users can upgrade to PyTorch version 2.6.0 or later, where this vulnerability has been patched.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.