{"id":"CVE-2026-31218","published":"2026-05-12T00:00:00Z","modified":"2026-05-15T14:00:28Z","title":"The _load_model() function in the neural_magic_training.py script of the optimate project in commit…","vendor":null,"product":null,"tier":"tail","description":{"text":"The _load_model() function in the neural_magic_training.py script of the optimate project in commit a6d302f912b481c94370811af6b11402f51d377f (2024-07-21) is vulnerable to insecure deserialization (CWE-502). When loading a model state dictionary from a state_dict.pt file via torch.load(), the function does not enable the weights_only=True security parameter. This allows the deserialization of arbitrary Python objects through the Pickle module. A remote attacker can exploit this by providing a maliciously crafted state_dict.pt file within a directory specified via the --model argument, leading to arbitrary code execution during the deserialization process on the victim's system.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00559,"percentile":0.47475,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/nebuly-ai/optimate","tags":[]},{"url":"https://www.notion.so/CVE-2026-31218-35d1e139318881839bc8cf6007be2c76","tags":[]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":9.5},{"name":"CVSS severity","points":6.16}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-15T14:00:24.313612Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-29502","exploited":false,"provenance":"source"}}