HighVulnerability
CVE-2026-31219: optimate insecure deserialization in _load_model() via a crafted model file
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-31219
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%
Summary
CVE-2026-31219 affects the _load_model() function in the neural_magic_training.py script of the optimate project, as of commit a6d302f912b481c94370811af6b11402f51d377f (2024-07-21). When a user supplies a single model file (.pt or .pth) through the --model argument, the function loads it with torch.load() without setting weights_only=True, allowing arbitrary Python objects to be deserialized via Pickle (CWE-502). A remote attacker who provides a crafted model file can achieve arbitrary code execution on the victim's system.
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