CVE-2025-5120 (CNNVD-202507-3410)
中文标题:
smolagents 代码注入漏洞
英文标题:
Sandbox Escape Vulnerability in huggingface/smolagents
漏洞描述
中文描述:
smolagents是Hugging Face开源的一个代理的基本库。 smolagents 1.14.0版本存在代码注入漏洞,该漏洞源于local_python_executor.py模块限制不足,可能导致远程代码执行。
英文描述:
A sandbox escape vulnerability was identified in huggingface/smolagents version 1.14.0, allowing attackers to bypass the restricted execution environment and achieve remote code execution (RCE). The vulnerability stems from the local_python_executor.py module, which inadequately restricts Python code execution despite employing static and dynamic checks. Attackers can exploit whitelisted modules and functions to execute arbitrary code, compromising the host system. This flaw undermines the core security boundary intended to isolate untrusted code, posing risks such as unauthorized code execution, data leakage, and potential integration-level compromise. The issue is resolved in version 1.17.0.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| huggingface | huggingface/smolagents | - | < 1.17.0 | - |
cpe:2.3:a:huggingface:huggingface_smolagents:*:*:*:*:*:*:*:*
|
| huggingface | smolagents | 1.14.0 | - | - |
cpe:2.3:a:huggingface:smolagents:1.14.0:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
CVSS评分详情
3.0 (cna)
HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2025-5120 |
2025-11-11 15:23:31 | 2025-11-11 07:40:39 |
| NVD | nvd_CVE-2025-5120 |
2025-11-11 15:00:57 | 2025-11-11 07:48:26 |
| CNNVD | cnnvd_CNNVD-202507-3410 |
2025-11-11 15:12:51 | 2025-11-11 08:00:02 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 代码注入
- cnnvd_id: 未提取 -> CNNVD-202507-3410
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 1 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']