PyTorch
PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CNA · CWE-502
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
pytorch pytorch
- < 2.10.0
Fixed in 2.10.0
Mitigation
Upgrade pytorch to 2.10.0 or later.
References
- Vendor advisory github.com/pytorch/pytorch/security/advisories…
- Patch github.com/pytorch/pytorch/163122/commit/954dc…
- Release notes github.com/pytorch/pytorch/releases/tag/v2.10.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.