Loading advisory.
Loading advisory.
PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
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.
Published 2026-01-27 20:10 UTC · Modified 2026-11-04 03:15 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| torch | PyPI | < 2.10.0 versions 1.0.0, 1.0.1, 1.1.0, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.2.0, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1 and 24 more | 2.10.0 | pip install --upgrade 'torch>=2.10.0' |
| pytorch | PyPI | < 2.10.0 versions 0.1.2, 1.0.2 | 2.10.0 | pip install --upgrade 'pytorch>=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.
The weights_only=True unpickler failed to properly validate pickle opcodes and storage metadata, allowing:
Heap memory corruption via SETITEM/SETITEMS opcodes applied to non-dictionary types
Storage size mismatch between declared element count and actual data in the archive
An attacker who can convince a user to load a malicious checkpoint file may achieve arbitrary code execution in the context of the victim's process.
Ji'an Zhou
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.008 on 2026-11-24 to 0.013 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.008 | first score | v2026.06.15 |
| 2026-11-26 | 0.013 | 0.008 | v2026.06.15 |