CVE-2025-6921 (CNNVD-202509-3659)
中文标题:
transformers 资源管理错误漏洞
英文标题:
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
漏洞描述
中文描述:
transformers是Hugging Face开源的一个用于机器学习的应用程序。 transformers 4.53.0之前版本存在资源管理错误漏洞,该漏洞源于_do_use_weight_decay方法处理用户控制的正则表达式时存在缺陷,可能导致正则表达式拒绝服务攻击。
英文描述:
The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (ReDoS) in the AdamWeightDecay optimizer. The vulnerability arises from the _do_use_weight_decay method, which processes user-controlled regular expressions in the include_in_weight_decay and exclude_from_weight_decay lists. Malicious regular expressions can cause catastrophic backtracking during the re.search call, leading to 100% CPU utilization and a denial of service. This issue can be exploited by attackers who can control the patterns in these lists, potentially causing the machine learning task to hang and rendering services unresponsive.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| huggingface | huggingface/transformers | - | < 4.53.0 | - |
cpe:2.3:a:huggingface:huggingface_transformers:*:*:*:*:*:*:*:*
|
| huggingface | transformers | * | - | - |
cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
CVSS评分详情
3.0 (cna)
MEDIUMCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2025-6921 |
2025-11-11 15:23:35 | 2025-11-11 07:40:51 |
| NVD | nvd_CVE-2025-6921 |
2025-11-11 15:01:03 | 2025-11-11 07:48:37 |
| CNNVD | cnnvd_CNNVD-202509-3659 |
2025-11-11 15:12:58 | 2025-11-11 08:00:13 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 资源管理错误
- cnnvd_id: 未提取 -> CNNVD-202509-3659
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 1 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']