CVE Catalog

CVE-2026-31222

High
Published: Translated: NVD NIST

Summary

The snorkel library thru v0.10.0 contains an insecure deserialization vulnerability in the Trainer.load() method. This method loads model checkpoint files without enabling the security-restrictive weights_only=True parameter, allowing deserialization of arbitrary Python objects.

Risk Assessment

A remote attacker can exploit this vulnerability by providing a maliciously crafted model file, leading to arbitrary code execution on the victim's system.

Recommendation

It is recommended to update the snorkel library to the latest version and enable the weights_only=True parameter when loading model files.

Related vulnerabilities

Original NVD description (English source)

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 data from NVD (NIST) · CISA KEV · EPSS