# CVE-2026-31222: Snorkel Trainer.load uses an unsafe torch.load

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-05-12T00:00:00.000Z
- Modified: 2026-10-19T22:10:00.130Z
- Also known as: GHSA-78cp-f66x-qmh5, PYSEC-2026-3068
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- snorkel (PyPI): up to 0.10.0
- snorkel snorkel: up to 0.10.0

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/snorkel-team/snorkel> (package, product)
- <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)

## Sources

- CVE List: [CVE-2026-31222](https://www.cve.org/CVERecord?id=CVE-2026-31222), CVE Terms of Use, modified 2026-05-15
- GitHub Advisory Database: [GHSA-78cp-f66x-qmh5](https://github.com/advisories/GHSA-78cp-f66x-qmh5), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-31222](https://nvd.nist.gov/vuln/detail/CVE-2026-31222), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-3068](https://osv.dev/vulnerability/PYSEC-2026-3068), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-31222 · Whole record: https://cve.day/CVE-2026-31222.json · Rebuilt by cve.day 2026-11-25T22:59:21.367Z
