HighVulnerability
CVE-2026-31214: torch-checkpoint-shrink.py insecure deserialization of PyTorch checkpoint files
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-31214
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.5%
Summary
The torch-checkpoint-shrink.py script in the ml-engineering project, at commit 0099885db36a8f06556efe1faf552518852cb1e0, is affected by CVE-2026-31214 (CWE-502). It calls torch.load() on PyTorch checkpoint (.pt) files without setting weights_only=True, so the pickle module can deserialize arbitrary Python objects. A remote attacker who supplies a maliciously crafted checkpoint file can achieve arbitrary code execution as the user running the script.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Related items
- InfoCVE-2026-123357: GROBID command execution through crafted PDF filename in Linux conversionSimilar attack · NVD/CVE Database
- MediumShai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI ToolsSimilar attack · Socket Blog
- MediumCPython flaw exposes AI inference servers to sandbox escape attacksSimilar attack · CSO Online
- HighCVE-2026-88981: Kubeflow Pipelines enables users to build and deploy portable, scalable machine learning workflows. Prior to 2.18.0…Similar attack · NVD/CVE Database
- MediumBinance heist is stark example of AI governance gaps and basic security failuresSimilar attack · CSO Online