{"id":"CVE-2026-31222","aliases":["CVE-2026-31222","GHSA-78cp-f66x-qmh5","PYSEC-2026-3068"],"related":[],"kind":"vulnerability","state":"published","title":"Snorkel Trainer.load uses an unsafe torch.load","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"La biblioteca snorkel hasta la v0.10.0 contiene una vulnerabilidad de deserialización insegura (CWE-502) en el método Trainer.load() de la clase Trainer. El método carga archivos de punto de control del modelo usando torch.load() sin habilitar el parámetro restrictivo de seguridad weights_only=True. Este comportamiento predeterminado permite la deserialización de objetos Python arbitrarios a través del módulo Pickle. Un atacante remoto puede explotar esto al proporcionar un archivo de modelo creado maliciosamente, lo que lleva a la ejecución de código arbitrario en el sistema de la víctima cuando el archivo es cargado a través del método vulnerable.","source":"nvd"}],"published":"2026-05-12T00:00:00.000Z","modified":"2026-10-19T22:10:00.130Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.10.0"}],"ecosystem":"PyPI","package":"snorkel","purl":"pkg:pypi/snorkel","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.10.0"}],"vendor":"snorkel","product":"snorkel","cpe":"cpe:2.3:a:snorkel:snorkel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.10.0"}],"ecosystem":"PyPI","package":"snorkel","purl":"pkg:pypi/snorkel","source":"pysec"}],"references":[{"url":"https://github.com/snorkel-team/snorkel","tags":["package","product"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.notion.so/CVE-2026-31222-35d1e139318881db8398e0732af8df6d","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31222","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/snorkel","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-78cp-f66x-qmh5","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-15T17:53:30.624Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31222","url":"https://www.cve.org/CVERecord?id=CVE-2026-31222","licence":"CVE Terms of Use","modified":"2026-05-15T18:05:36.732Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-78cp-f66x-qmh5","url":"https://github.com/advisories/GHSA-78cp-f66x-qmh5","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:08.592Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31222","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31222","licence":"Public domain","modified":"2026-10-19T22:10:00.130Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3068","url":"https://osv.dev/vulnerability/PYSEC-2026-3068","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:49.516Z"}],"updatedAt":"2026-11-25T22:59:21.367Z","epss":{"score":0.00392,"percentile":0.35505,"date":"2026-12-01T12:00:22.000Z"}}