CVE-2025-32434
CRITICAL9.8EPSS 0.43%PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
發布日:2025/4/18修改日:2026/4/28
描述
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.
受影響套件(5)
- Bitnami/pytorchfrom 0, < 2.6.0
- Debian/pytorchfrom 0, < 1.7.1-7+deb11u1
- Debian/pytorchfrom 0, < 1.7.1-7+deb11u1
- PyPI/torchfrom 0, < 2.6.0
- PyPI/torchfrom 0, < 2.6.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
參考連結(7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-32434
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-32434
- PATCHhttps://github.com/pytorch/pytorch
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-41.yaml
- WEBhttps://github.com/pytorch/pytorch/commit/8d4b8a920a2172523deb95bf20e8e52d50649c04
- WEBhttps://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6
- WEBhttps://lists.debian.org/debian-lts-announce/2025/12/msg00000.html