CVE-2026-31222
HIGH 8.8CVSS 3.1Snorkel Trainer.load uses an unsafe torch.load
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.
- Published
- 12 May 2026
- Last modified
- 19 Oct 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-78cp-f66x-qmh5PYSEC-2026-3068
- Sources
- NVDJSONOSV GHSA-78cp-f66x-qmh5JSONOSV PYSEC-2026-3068JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | snorkel | snorkelcpe:2.3:a:snorkel:snorkel:*:*:*:*:*:*:*:* |
<= 0.10.0 | |
| OSV | PyPI | snorkel | <= 0.10.0 |
References
- https://github.com/snorkel-team/snorkel · Product, PACKAGE
- https://www.notion.so/CVE-2026-31222-35d1e139318881db8398e0732af8df6d · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-31222 · ADVISORY
- https://pypi.org/project/snorkel · PACKAGE
- https://github.com/advisories/GHSA-78cp-f66x-qmh5 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 12 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 May 2026)