CVE-2025-9905 (CNNVD-202509-3143)
中文标题:
Keras 安全漏洞
英文标题:
Arbitary Code execution in Keras load_model()
漏洞描述
中文描述:
Keras是Keras开源的一个多后端深度学习框架。 Keras存在安全漏洞,该漏洞源于未正确强制执行safe_mode选项,可能导致执行任意代码。
英文描述:
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 .h5/.hdf5 model archive that, when loaded via Model.load_model, will trigger arbitrary code to be executed. This is achieved by crafting a special .h5 archive file that uses the Lambda layer feature of keras which allows arbitrary Python code in the form of pickled code. The vulnerability comes from the fact that the safe_mode=True option is not honored when reading .h5 archives. Note that the .h5/.hdf5 format is a legacy format supported by Keras 3 for backwards compatibility.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| Keras-team | Keras | - | ≤ 3.11.2 | - |
cpe:2.3:a:keras-team:keras:*:*:*:*:*:*:*:*
|
| keras | keras | * | - | - |
cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
CVSS评分详情
4.0 (cna)
HIGHCVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2025-9905 |
2025-11-11 15:23:38 | 2025-11-11 07:40:55 |
| NVD | nvd_CVE-2025-9905 |
2025-11-11 15:01:03 | 2025-11-11 07:48:41 |
| CNNVD | cnnvd_CNNVD-202509-3143 |
2025-11-11 15:12:58 | 2025-11-11 08:00:12 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 其他
- cnnvd_id: 未提取 -> CNNVD-202509-3143
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 1 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']