漏洞信息
# 通过制作Keras配置加载模型实现任意代码执行
## 漏洞概述
Keras 的 `Model.load_model` 函数允许通过手动构造的恶意 `.keras` 存档文件执行任意代码,即使在 `safe_mode=True` 的情况下也是如此。
## 影响版本
未具体说明影响的版本。
## 漏洞细节
攻击者可以通过修改存档内的 `config.json` 文件,指定任意 Python 模块和函数及其参数,在模型加载过程中被加载和执行。
## 漏洞影响
攻击者可以利用此漏洞执行任意代码,对系统安全构成严重威胁。
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
Arbitrary Code Execution via Crafted Keras Config for Model Loading
漏洞描述信息
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.
CVSS信息
N/A
漏洞类别
对生成代码的控制不恰当(代码注入)
漏洞标题
Keras 代码注入漏洞
漏洞描述信息
Keras是Keras开源的一个多后端深度学习框架。 Keras存在代码注入漏洞,该漏洞源于允许通过手动构造的恶意keras存档执行任意代码,即使在安全模式下也是如此。
CVSS信息
N/A
漏洞类别
代码注入