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

exploitDog

github логотип

GHSA-48g7-3x6r-xfhp

Опубликовано: 11 мар. 2025
Источник: github
Github: Прошло ревью
CVSS4: 7.3

Описание

Arbitrary Code Execution via Crafted Keras Config for Model Loading

Impact

The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the archive, an attacker can specify arbitrary Python modules and functions, along with their arguments, to be loaded and executed during model loading.

Patches

This problem is fixed starting with version 3.9.

Workarounds

Only load models from trusted sources and model archives created with Keras.

References

Пакеты

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

keras

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

>= 3.0.0, < 3.9.0

3.9.0

EPSS

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

7.3 High

CVSS4

Дефекты

CWE-94

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

CVSS3: 9.8
ubuntu
больше 1 года назад

The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the archive, an attacker can specify arbitrary Python modules and functions, along with their arguments, to be loaded and executed during model loading.

CVSS3: 8.2
redhat
больше 1 года назад

The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the archive, an attacker can specify arbitrary Python modules and functions, along with their arguments, to be loaded and executed during model loading.

CVSS3: 9.8
nvd
больше 1 года назад

The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the archive, an attacker can specify arbitrary Python modules and functions, along with their arguments, to be loaded and executed during model loading.

CVSS3: 9.8
msrc
около 1 года назад

Arbitrary Code Execution via Crafted Keras Config for Model Loading

CVSS3: 9.8
debian
больше 1 года назад

The Keras Model.load_model function permits arbitrary code execution, ...

EPSS

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

7.3 High

CVSS4

Дефекты

CWE-94