{"id":"CVE-2026-31214","aliases":["CVE-2026-31214"],"related":[],"kind":"vulnerability","state":"published","title":"The torch-checkpoint-shrink.py script in the ml-engineering project in commit 0099885db36a8f06556efe1faf552518852cb1e0 (2025-20-27) contain…","summary":"The torch-checkpoint-shrink.py script in the ml-engineering project in commit 0099885db36a8f06556efe1faf552518852cb1e0 (2025-20-27) contains an insecure deserialization vulnerability (CWE-502). The script uses torch.load() to process PyTorch checkpoint files (.pt) without enabling the security-restrictive weights_only=True parameter. This oversight allows the deserialization of arbitrary Python objects via the pickle module. A remote attacker can exploit this by providing a maliciously crafted checkpoint file, leading to arbitrary code execution in the context of the user running the script.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The torch-checkpoint-shrink.py script in the ml-engineering project in commit 0099885db36a8f06556efe1faf552518852cb1e0 (2025-20-27) contains an insecure deserialization vulnerability (CWE-502). The script uses torch.load() to process PyTorch checkpoint files (.pt) without enabling the security-restrictive weights_only=True parameter. This oversight allows the deserialization of arbitrary Python objects via the pickle module. A remote attacker can exploit this by providing a maliciously crafted checkpoint file, leading to arbitrary code execution in the context of the user running the script.","source":"cvelist"}],"published":"2026-05-12T00:00:00.000Z","modified":"2026-06-17T10:33:26.247Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"}],"references":[{"url":"https://github.com/stas00/ml-engineering/blob/master/training/checkpoints/torch-checkpoint-shrink.py#L57","tags":[],"sources":["cvelist","nvd"]},{"url":"https://www.notion.so/CVE-2026-31214-35d1e1393188813fa40eef73c174cee5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-13T13:52:04.178Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31214","url":"https://www.cve.org/CVERecord?id=CVE-2026-31214","licence":"CVE Terms of Use","modified":"2026-05-13T13:54:51.093Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31214","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31214","licence":"Public domain","modified":"2026-06-17T10:33:26.247Z"}],"updatedAt":"2026-11-25T22:59:21.364Z","epss":{"score":0.00486,"percentile":0.4352,"date":"2026-12-01T12:00:22.000Z"}}