All reports
High

Snorkel Trainer.load uses an unsafe torch.load

Affected versions

Version ranges need review.

Affected versions
<= 0.10.0
Fixed version
Not reported
Affected versions
<=0.10.0 || =0.10.0 || =0.9.0 || =0.9.1 || =0.9.2 || =0.9.3 || =0.9.4 || =0.9.5 || =0.9.6 || =0.9.7 || =0.9.8 || =0.9.9
Fixed version
Not reported

Exploitation

CVE-2026-31222

Probability of exploitation in the next 30 days: 0.39%

FIRST EPSS · 2026-11-24

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.

Links