CVE-2026-31219: n/a
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 a user provides a single model file path (e.g., .pt or .pth) via the --model command-line argument, the function loads the file using torch.load() without enabling 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 model file, leading to arbitrary code execution during deserialization on the victim's system.
AI Analysis
Technical Summary
The vulnerability exists in the _load_model() function of the neural_magic_training.py script within the optimate project. When loading a model file specified by the --model command-line argument, the function calls torch.load() without enabling the weights_only=True parameter. This omission allows the deserialization of arbitrary Python objects through the Pickle module, which is inherently unsafe. An attacker can craft a malicious model file that, when loaded, executes arbitrary code on the target system. The CVSS v3.1 score is 8.8, indicating a high impact with network attack vector, low attack complexity, requiring low privileges and no user interaction, and resulting in high confidentiality, integrity, and availability impacts. No patch or official remediation has been published as of the data provided.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary code on the victim system by providing a malicious model file. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability requires the attacker to have the ability to supply a model file to the vulnerable script, which may require some level of access or user interaction depending on deployment. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading untrusted or unauthenticated model files with the vulnerable script. Consider manually modifying the code to use torch.load() with weights_only=True if feasible, to mitigate insecure deserialization risks.
CVE-2026-31219: n/a
Description
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 a user provides a single model file path (e.g., .pt or .pth) via the --model command-line argument, the function loads the file using torch.load() without enabling 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 model file, leading to arbitrary code execution during deserialization on the victim's system.
CVSS v3.1
Score 8.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the _load_model() function of the neural_magic_training.py script within the optimate project. When loading a model file specified by the --model command-line argument, the function calls torch.load() without enabling the weights_only=True parameter. This omission allows the deserialization of arbitrary Python objects through the Pickle module, which is inherently unsafe. An attacker can craft a malicious model file that, when loaded, executes arbitrary code on the target system. The CVSS v3.1 score is 8.8, indicating a high impact with network attack vector, low attack complexity, requiring low privileges and no user interaction, and resulting in high confidentiality, integrity, and availability impacts. No patch or official remediation has been published as of the data provided.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary code on the victim system by providing a malicious model file. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability requires the attacker to have the ability to supply a model file to the vulnerable script, which may require some level of access or user interaction depending on deployment. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading untrusted or unauthenticated model files with the vulnerable script. Consider manually modifying the code to use torch.load() with weights_only=True if feasible, to mitigate insecure deserialization risks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-03-09T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a034c84cbff5d8610fe99de
Added to database: 05/12/2026, 15:51:32 UTC
Last enriched: 05/19/2026, 18:19:27 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 60
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.