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

exploitDog

nvd логотип

CVE-2026-1839

Опубликовано: 07 апр. 2026
Источник: nvd
CVSS3: 6.5
CVSS3: 7.8
EPSS Низкий

Описание

A vulnerability in the HuggingFace Transformers library, specifically in the Trainer class, allows for arbitrary code execution. The _load_rng_state() method in src/transformers/trainer.py at line 3059 calls torch.load() without the weights_only=True parameter. This issue affects all versions of the library supporting torch>=2.2 when used with PyTorch versions below 2.6, as the safe_globals() context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as rng_state.pth, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*
Версия до 5.0.0 (исключая)
cpe:2.3:a:huggingface:transformers:5.0.0:rc0:*:*:*:*:*:*
cpe:2.3:a:huggingface:transformers:5.0.0:rc1:*:*:*:*:*:*
cpe:2.3:a:huggingface:transformers:5.0.0:rc2:*:*:*:*:*:*

EPSS

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

6.5 Medium

CVSS3

7.8 High

CVSS3

Дефекты

CWE-502

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

CVSS3: 6.7
redhat
4 месяца назад

A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary code execution. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True` parameter. This issue affects all versions of the library supporting `torch>=2.2` when used with PyTorch versions below 2.6, as the `safe_globals()` context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as `rng_state.pth`, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.

CVSS3: 6.5
github
4 месяца назад

HuggingFace Transformers allows for arbitrary code execution in the `Trainer` class

EPSS

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

6.5 Medium

CVSS3

7.8 High

CVSS3

Дефекты

CWE-502