PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
48Vexday Risk Score
No sign of exploitation. It has a public proof of concept.
ssvc Attendcvss 9.3epss 1.9%
from disclosure to weapon209 days
Published on NVDApr 18
1st PoC+209d
exploitation probability
1.9%top 22% of all CVEs
observed exploitation
nono source reports it
3 public exploit(s)
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.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected products
pytorch · pytorchpublic PoCs found — 3
githubgithub.com/cyhe50/cve-2025-32434-poc★ 0githubgithub.com/B1tBit/CVE-2025-32434-exploit★ 0githubgithub.com/Soildworks/Agentic-CLIP-Benchmark★ 0⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.