Vulnerability · Published Jan 27, 2026 · Assigned by GitHub_M
CVE-2026-24747PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
High 8.8
In plain English
A high-severity unsafe deserialization in pytorch from pytorch. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pytorch | no fix listed | DEBIAN-CVE-2026-24747 |
| Debian:13 | pytorch | no fix listed | DEBIAN-CVE-2026-24747 |
| Debian:14 | pytorch | 2.12.0+dfsg2-1 | DEBIAN-CVE-2026-24747 |
| PyPI | pytorch | 2.10.0 | PYSEC-2026-1856 |
| PyPI | torch | 2.10.0 | GHSA-63cw-57p8-fm3p |
| PyPI | torch | 2.10.0 | PYSEC-2026-2286 |
| Ubuntu:22.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2026-24747 |
| Ubuntu:25.10 | pytorch | no fix listed | UBUNTU-CVE-2026-24747 |
| Ubuntu:26.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2026-24747 |
| Ubuntu:26.10 | pytorch | no fix listed | UBUNTU-CVE-2026-24747 |
Affected products (as reported)
Weakness: CWE-502, CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/pytorch/pytorch/security/advisories/GHSA-63cw-57p8-fm3p x_refsource_CONFIRM
- https://github.com/pytorch/pytorch/issues/163105 x_refsource_MISC
- https://github.com/pytorch/pytorch/163122/commit/954dc5183ee9205cbe79876ad05dd2d9ae752139 x_refsource_MISC
- https://github.com/pytorch/pytorch/releases/tag/v2.10.0 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-24747 vdb-entry, x_refsource_REDHAT
- RHBZ#2433612 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24747.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:24977 vendor-advisory, x_refsource_REDHAT