Skip to main content
← All vulnerabilities
CVE-2025-32434PYSEC-2025-41BIT-PYTORCH-2025-32434GHSA-53Q9-R3PM-6PQ6

PyTorch: `torch.load` with `weights_only=True` leads to remote code execution

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.6.0
4 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • pytorch pytorch

    fixed in 2.6.0

  • torchPyPI

    fixed in 2.6.0

References 5

GitHub · pytorch/pytorch

GitHub · AlexanderGumeniuk/CVE-2025-32434

GitHub · B1tBit/CVE-2025-32434-exploit

GitHub · Soildworks/Agentic-CLIP-Benchmark

GitHub · cyhe50/cve-2025-32434-poc