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.
CVE-2026-31222 is an insecure deserialization vulnerability in Snorkel library versions up to 0.10.0 affecting the Trainer.load() method, which fails to restrict pickle deserialization and allows arbitrary code execution. Attackers can exploit this by providing malicious model checkpoint files that execute arbitrary Python code when loaded.
تحتوي مكتبة Snorkel على ثغرة عدم تسلسل غير آمن في دالة Trainer.load() التي تسمح بتنفيذ كود Python تعسفي عند تحميل ملفات نقاط تفتيش النموذج المصابة. يمكن للمهاجمين الاستفادة من هذه الثغرة بتوفير ملفات نموذج مصنوعة بشكل خبيث تحتوي على حمولات ضارة.
Snorkel library versions through 0.10.0 contain an insecure deserialization flaw in Trainer.load() that permits arbitrary code execution through crafted model files. This vulnerability stems from unsafe use of torch.load() without the weights_only=True security parameter.
Upgrade Snorkel library to version 0.10.1 or later immediately. Implement strict file validation and sandboxing for model checkpoint loading. Enable torch.load() with weights_only=True parameter. Restrict model file sources to trusted repositories only. Monitor and audit all model loading operations in production environments.
قم بترقية مكتبة Snorkel إلى الإصدار 0.10.1 أو أحدث فوراً. طبق التحقق الصارم من الملفات والعزل الآمن عند تحميل نقاط تفتيش النموذج. فعّل torch.load() مع معامل weights_only=True. قيّد مصادر ملفات النموذج للمستودعات الموثوقة فقط. راقب وتدقق جميع عمليات تحميل النموذج في بيئات الإنتاج.