CVE-2026-31222: n/a
The snorkel library thru v0.10.0 contains an insecure deserialization vulnerability (CWE-502) in the Trainer.load() method of the Trainer class. The method loads model checkpoint files using torch.load() without enabling the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the Pickle module. A remote attacker can exploit this by providing a maliciously crafted model file, leading to arbitrary code execution on the victim's system when the file is loaded via the vulnerable method.
AI Analysis
Technical Summary
CVE-2026-31222 describes an insecure deserialization vulnerability (CWE-502) in the snorkel library's Trainer.load() method. The method loads model checkpoint files using torch.load() without enabling the weights_only=True parameter, which restricts deserialization to tensor weights only. This omission allows deserialization of arbitrary Python objects through Pickle, enabling remote attackers to execute arbitrary code by providing crafted model files. The vulnerability affects versions through 0.10.0 and has a high CVSS score of 8.8. No patch or official remediation level has been published as of the data provided.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary code on the victim system by loading a maliciously crafted model checkpoint file via the vulnerable Trainer.load() method. This can lead to full compromise of the affected system with high confidentiality, integrity, and availability impact.
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 model checkpoint files with the Trainer.load() method. Consider manually modifying the code to use torch.load() with weights_only=True if feasible to restrict deserialization. Monitor vendor channels for updates or patches.
CVE-2026-31222: n/a
Description
The snorkel library thru v0.10.0 contains an insecure deserialization vulnerability (CWE-502) in the Trainer.load() method of the Trainer class. The method loads model checkpoint files using torch.load() without enabling the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the Pickle module. A remote attacker can exploit this by providing a maliciously crafted model file, leading to arbitrary code execution on the victim's system when the file is loaded via the vulnerable method.
CVSS v3.1
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-31222 describes an insecure deserialization vulnerability (CWE-502) in the snorkel library's Trainer.load() method. The method loads model checkpoint files using torch.load() without enabling the weights_only=True parameter, which restricts deserialization to tensor weights only. This omission allows deserialization of arbitrary Python objects through Pickle, enabling remote attackers to execute arbitrary code by providing crafted model files. The vulnerability affects versions through 0.10.0 and has a high CVSS score of 8.8. No patch or official remediation level has been published as of the data provided.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary code on the victim system by loading a maliciously crafted model checkpoint file via the vulnerable Trainer.load() method. This can lead to full compromise of the affected system with high confidentiality, integrity, and availability impact.
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 model checkpoint files with the Trainer.load() method. Consider manually modifying the code to use torch.load() with weights_only=True if feasible to restrict deserialization. Monitor vendor channels for updates or patches.
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: 6a034c84cbff5d8610fe99ea
Added to database: 05/12/2026, 15:51:32 UTC
Last enriched: 05/19/2026, 18:17:30 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 48
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.