CVE-2025-9906 (CNNVD-202509-3142)
中文标题:
Keras 安全漏洞
英文标题:
Arbitrary Code execution in Keras Safe Mode
漏洞描述
中文描述:
Keras是Keras开源的一个多后端深度学习框架。 Keras 存在安全漏洞,该漏洞源于特制的.keras模型存档可能触发任意代码执行。
英文描述:
The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True. One can create a specially crafted .keras model archive that, when loaded via Model.load_model, will trigger arbitrary code to be executed. This is achieved by crafting a special config.json (a file within the .keras archive) that will invoke keras.config.enable_unsafe_deserialization() to disable safe mode. Once safe mode is disable, one can use the Lambda layer feature of keras, which allows arbitrary Python code in the form of pickled code. Both can appear in the same archive. Simply the keras.config.enable_unsafe_deserialization() needs to appear first in the archive and the Lambda with arbitrary code needs to be second.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| Keras-team | Keras | - | < 3.11.0 | - |
cpe:2.3:a:keras-team:keras:*:*:*:*:*:*:*:*
|
| keras | keras | * | - | - |
cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
CVSS评分详情
4.0 (cna)
HIGHCVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2025-9906 |
2025-11-11 15:23:38 | 2025-11-11 07:40:55 |
| NVD | nvd_CVE-2025-9906 |
2025-11-11 15:01:03 | 2025-11-11 07:48:41 |
| CNNVD | cnnvd_CNNVD-202509-3142 |
2025-11-11 15:12:58 | 2025-11-11 08:00:12 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 其他
- cnnvd_id: 未提取 -> CNNVD-202509-3142
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 1 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']