CVE-2026-31214: n/a
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 Analysis
Technical Summary
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.
CVE-2026-31214: n/a
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
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.
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 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.