CVE-2021-41228 (CNNVD-202111-558)
中文标题:
Google TensorFlow 代码注入漏洞
英文标题:
Code injection in `saved_model_cli`
漏洞描述
中文描述:
Google TensorFlow是美国谷歌(Google)公司的一套用于机器学习的端到端开源平台。 Google TensorFlow 存在代码注入漏洞,该漏洞源于 saved_model_cli 工具容易受到代码注入的影响,因为它会在用户提供的字符串上调用 eval。 攻击者可以使用它在 CLI 工具运行的平台上运行任意代码。 不过,鉴于该工具始终是手动运行的,因此其影响并不严重。 我们通过添加一个默认为 True 的 safe 标志和对用户的明确警告来修补这个问题。
英文描述:
TensorFlow is an open source platform for machine learning. In affected versions TensorFlow's `saved_model_cli` tool is vulnerable to a code injection as it calls `eval` on user supplied strings. This can be used by attackers to run arbitrary code on the plaform where the CLI tool runs. However, given that the tool is always run manually, the impact of this is not severe. We have patched this by adding a `safe` flag which defaults to `True` and an explicit warning for users. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| tensorflow | tensorflow | >= 2.6.0, < 2.6.1 | - | - |
cpe:2.3:a:tensorflow:tensorflow:>=_2.6.0,_<_2.6.1:*:*:*:*:*:*:*
|
| tensorflow | tensorflow | >= 2.5.0, < 2.5.2 | - | - |
cpe:2.3:a:tensorflow:tensorflow:>=_2.5.0,_<_2.5.2:*:*:*:*:*:*:*
|
| tensorflow | tensorflow | < 2.4.4 | - | - |
cpe:2.3:a:tensorflow:tensorflow:<_2.4.4:*:*:*:*:*:*:*
|
| tensorflow | * | - | - |
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
|
|
| tensorflow | 2.7.0 | - | - |
cpe:2.3:a:google:tensorflow:2.7.0:rc0:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
CVSS评分详情
3.1 (cna)
HIGHCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2021-41228 |
2025-11-11 15:21:06 | 2025-11-11 07:37:03 |
| NVD | nvd_CVE-2021-41228 |
2025-11-11 14:57:44 | 2025-11-11 07:45:21 |
| CNNVD | cnnvd_CNNVD-202111-558 |
2025-11-11 15:10:45 | 2025-11-11 07:57:01 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 代码注入
- cnnvd_id: 未提取 -> CNNVD-202111-558
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 3 -> 5
- data_sources: ['cve'] -> ['cve', 'nvd']