CVE-2026-24747
HIGH8.8EPSS 0.07%PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
Published: 1/27/2026Modified: 4/28/2026
Description
PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's `weights_only` unpickler allows an attacker to craft a malicious checkpoint file (`.pth`) that, when loaded with `torch.load(..., weights_only=True)`, can corrupt memory and potentially lead to arbitrary code execution. Version 2.10.0 fixes the issue.
Affected packages (3)
- Bitnami/pytorchfrom 0, < 2.10.0
- Debian/pytorchfrom 0
- PyPI/pytorchfrom 0, < 2.10.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-24747
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-24747
- PATCHhttps://github.com/pytorch/pytorch
- WEBhttps://github.com/pytorch/pytorch/163122/commit/954dc5183ee9205cbe79876ad05dd2d9ae752139
- WEBhttps://github.com/pytorch/pytorch/issues/163105
- WEBhttps://github.com/pytorch/pytorch/releases/tag/v2.10.0
- WEBhttps://github.com/pytorch/pytorch/security/advisories/GHSA-63cw-57p8-fm3p