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-31214: n/a

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

Description

The torch-checkpoint-shrink.py script in the ml-engineering project in commit 0099885db36a8f06556efe1faf552518852cb1e0 (2025-20-27) contains an insecure deserialization vulnerability (CWE-502). The script uses torch.load() to process PyTorch checkpoint files (.pt) without enabling the security-restrictive weights_only=True parameter. This oversight allows the deserialization of arbitrary Python objects via the pickle module. A remote attacker can exploit this by providing a maliciously crafted checkpoint file, leading to arbitrary code execution in the context of the user running the script.

AI-Powered Analysis

Machine-generated threat intelligence

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

Technical Analysis

CVE-2026-31214 describes an insecure deserialization vulnerability in the torch-checkpoint-shrink.py script of the ml-engineering project. The script uses torch.load() to deserialize PyTorch checkpoint files (.pt) without enabling the security-restrictive weights_only=True parameter. This omission permits deserialization of arbitrary Python objects via pickle, enabling remote attackers to execute arbitrary code by supplying malicious checkpoint files.

Potential Impact

Successful exploitation allows arbitrary code execution with the privileges of the user running the vulnerable script. This can lead to full system compromise or unauthorized actions within the user's environment. 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 a fix is available, users should avoid loading untrusted PyTorch checkpoint files with torch.load() without the weights_only=True parameter. Applying this parameter restricts deserialization to tensor weights only, mitigating the risk of arbitrary code execution.

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: 6a034c84cbff5d8610fe99c9

Added to database: 5/12/2026, 3:51:32 PM

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

Last updated: 5/13/2026, 4:50:53 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