CVE-2025-5197 (CNNVD-202508-407)
中文标题:
Hugging Face Transformers 安全漏洞
英文标题:
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
漏洞描述
中文描述:
Hugging Face Transformers是Hugging Face开源的为 Jax、PyTorch 和 TensorFlow 打造的先进的自然语言处理。 Hugging Face Transformers 4.51.3及之前版本存在安全漏洞,该漏洞源于正则表达式拒绝服务攻击。
英文描述:
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hugging Face Transformers library, specifically in the `convert_tf_weight_name_to_pt_weight_name()` function. This function, responsible for converting TensorFlow weight names to PyTorch format, uses a regex pattern `/[^/]*___([^/]*)/` that can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic backtracking. The vulnerability affects versions up to 4.51.3 and is fixed in version 4.53.0. This issue can lead to service disruption, resource exhaustion, and potential API service vulnerabilities, impacting model conversion processes between TensorFlow and PyTorch formats.
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-5197 |
2025-11-11 15:23:32 | 2025-11-11 07:40:39 |
| NVD | nvd_CVE-2025-5197 |
2025-11-11 15:00:58 | 2025-11-11 07:48:27 |
| CNNVD | cnnvd_CNNVD-202508-407 |
2025-11-11 15:12:52 | 2025-11-11 08:00:08 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 其他
- cnnvd_id: 未提取 -> CNNVD-202508-407
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 1 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']