CVE-2025-32434: PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
I found a Remote Command Execution (RCE) vulnerability in the PyTorch. When load model using torch.load with weights_only=True, it can still achieve RCE.
References
Code Behaviors & Features
Detect and mitigate CVE-2025-32434 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →