CVE Catalog

CVE-2026-31224

High
Published: Translated: NVD NIST

Summary

The snorkel library thru v0.10.0 contains an insecure deserialization vulnerability in the MultitaskClassifier.load() method. This method loads model weight files without enabling the security-restrictive weights_only=True parameter, allowing the 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 that fixes this vulnerability and to enable the weights_only=True parameter when loading model weight files.

Related vulnerabilities

Original NVD description (English source)

The snorkel library thru v0.10.0 contains an insecure deserialization vulnerability (CWE-502) in the MultitaskClassifier.load() method of the MultitaskClassifier class. The method loads model weight 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