Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-31219: n/a

0
Unknown
VulnerabilityCVE-2026-31219cvecve-2026-31219
Published: Tue May 12 2026 (05/12/2026, 00:00:00 UTC)
Source: CVE Database V5

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/12/2026, 16:08:04 UTC

Technical Analysis

The vulnerability arises from the _load_model() function in neural_magic_training.py of the optimate project, which loads model files using torch.load() without the weights_only=True security parameter. This insecure deserialization allows an attacker to craft a malicious model file that, when loaded, executes arbitrary Python code via Pickle deserialization. The issue was identified in a commit dated 2024-07-21 and published as CVE-2026-31219. There is no CVSS score or vendor advisory specifying remediation or patch availability. The vulnerability is local to the script usage and does not involve cloud-hosted services.

Potential Impact

Successful exploitation allows a remote attacker who can supply a malicious model file to execute arbitrary code on the victim's system during model loading. This can lead to full system compromise depending on the privileges of the user running the script. No known exploits in the wild have been reported, and the impact is limited to environments where untrusted model files are loaded using this script.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid loading untrusted or unauthenticated model files with the vulnerable script. Applying the weights_only=True parameter in torch.load() when loading models is recommended to prevent arbitrary code execution. Monitor official project repositories for updates or patches addressing this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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: 5/12/2026, 3:51:32 PM

Last enriched: 5/12/2026, 4:08:04 PM

Last updated: 5/13/2026, 4:47:20 AM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses