Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-63cw-57p8-fm3p

Опубликовано: 27 янв. 2026
Источник: github
Github: Прошло ревью
CVSS3: 8.8

Описание

PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files

Summary

A vulnerability in PyTorch's weights_only unpickler allows an attacker to craft a malicious checkpoint file (.pth) that, when loaded with torch.load(..., weights_only=True), can corrupt memory and potentially lead to arbitrary code execution.

Vulnerability Details

The weights_only=True unpickler failed to properly validate pickle opcodes and storage metadata, allowing:

  1. Heap memory corruption via SETITEM/SETITEMS opcodes applied to non-dictionary types
  2. Storage size mismatch between declared element count and actual data in the archive

Impact

An attacker who can convince a user to load a malicious checkpoint file may achieve arbitrary code execution in the context of the victim's process.

Credit

Ji'an Zhou

Пакеты

Наименование

pytorch

pip
Затронутые версииВерсия исправления

< 2.10.0

2.10.0

EPSS

Процентиль: 5%
0.00022
Низкий

8.8 High

CVSS3

Дефекты

CWE-502
CWE-94

Связанные уязвимости

CVSS3: 8.8
ubuntu
10 дней назад

PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's `weights_only` unpickler allows an attacker to craft a malicious checkpoint file (`.pth`) that, when loaded with `torch.load(..., weights_only=True)`, can corrupt memory and potentially lead to arbitrary code execution. Version 2.10.0 fixes the issue.

CVSS3: 8.8
nvd
10 дней назад

PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's `weights_only` unpickler allows an attacker to craft a malicious checkpoint file (`.pth`) that, when loaded with `torch.load(..., weights_only=True)`, can corrupt memory and potentially lead to arbitrary code execution. Version 2.10.0 fixes the issue.

CVSS3: 8.8
debian
10 дней назад

PyTorch is a Python package that provides tensor computation. Prior to ...

CVSS3: 8.8
fstec
5 месяцев назад

Уязвимость параметра weights_only функции torch.load() фреймворка машинного обучения PyTorch, позволяющая нарушителю выполнить произвольный код

EPSS

Процентиль: 5%
0.00022
Низкий

8.8 High

CVSS3

Дефекты

CWE-502
CWE-94