Skip to content

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

HighCVSS 8.8 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
pypi snorkel(PyPI) <= 0.10.0; = 0.9.0; = 0.9.1; = 0.9.2 +8 more after 0.10.0 Fixed
snorkel <= 0.10.0 after 0.10.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi snorkel(PyPI) <= 0.10.0 No fix listed
pypi snorkel(PyPI) = 0.10.0 No fix listed
pypi snorkel(PyPI) = 0.9.0 No fix listed
pypi snorkel(PyPI) = 0.9.1 No fix listed
pypi snorkel(PyPI) = 0.9.2 No fix listed
pypi snorkel(PyPI) = 0.9.3 No fix listed
pypi snorkel(PyPI) = 0.9.4 No fix listed
pypi snorkel(PyPI) = 0.9.5 No fix listed
pypi snorkel(PyPI) = 0.9.6 No fix listed
pypi snorkel(PyPI) = 0.9.7 No fix listed
pypi snorkel(PyPI) = 0.9.8 No fix listed
pypi snorkel(PyPI) = 0.9.9 No fix listed
snorkel <= 0.10.0 No fix listed

References