CVE-2026-24747: torch · PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
Affects torchSource GCVE Database
Not known to be exploited · CVSS 8.8 High : upgrade to 2.10.0 soon.
Data as of 4 Nov 2026, 04:28 UTC
- Patch
- Available – fixed in 2.10.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Nov 2026.
What to do
Upgrade torch to 2.10.0.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPItorch | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and users should upgrade to PyTorch version 2.10.0 or later to remediate this vulnerability. Red Hat has released security advisories and updated packages addressing this issue. Users should avoid loading untrusted checkpoint files with weights_only=True. No additional mitigations are specified by the vendor.
Description
A vulnerability in PyTorch's weights_only unpickler allows remote attackers to execute arbitrary code by loading a malicious checkpoint (.pth) file. The flaw involves improper validation of pickle opcodes and storage metadata, leading to heap memory corruption and storage size mismatches. This can be exploited if a user loads a crafted checkpoint file with torch.load(..., weights_only=True). The issue affects PyTorch versions prior to 2.10.0 and is fixed in version 2.10.0.
References
- github.com/pytorch/pytorch/security/advisories/GHSA-63cw-57p8-fm3p (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-24747 (opens in a new tab)
- github.com/pytorch/pytorch/issues/163105 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:24977 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-24747 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2433612 (opens in a new tab)
- github.com/advisories/GHSA-63cw-57p8-fm3p (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/pytorch/PYSEC-2026-1856.yaml (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2026-2286.yaml (opens in a new tab)
- github.com/pytorch/pytorch (opens in a new tab)
- github.com/pytorch/pytorch/163122/commit/954dc5183ee9205cbe79876ad05dd2d9ae752139 (opens in a new tab)
- github.com/pytorch/pytorch/releases/tag/v2.10.0 (opens in a new tab)
- pypi.org/project/pytorch (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24747.json (opens in a new tab)