Deserialization in Snorkel
CVE-2026-31222
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.007 (50.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 51st percentile — 50.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.007 · change: +0.003
Affected products
Weakness classification (CWE)
References
- github.com/snorkel-team/snorkel (Product)
- www.notion.so/CVE-2026-31222-35d1e139318881db8398e0732af8df6d (Third Party Advisory)
Frequently asked questions
- What is CVE-2026-31222?
- CVE-2026-31222 is a high-severity vulnerability in Snorkel, classified under Deserialization of Untrusted Data. CVSS score: 8.8/10. Published 2026-05-12.
- How severe is CVE-2026-31222?
- High severity. CVSS v3 base score is 8.8 out of 10.