CVE-2025-6051 (CNNVD-202509-1851)
中文标题:
Hugging Face Transformers 安全漏洞
英文标题:
Regular Expression Denial of Service (ReDoS) in huggingface/transformers
漏洞描述
中文描述:
Hugging Face Transformers是Hugging Face开源的为 Jax、PyTorch 和 TensorFlow 打造的先进的自然语言处理。 Hugging Face Transformers 4.52.4及之前版本存在安全漏洞,该漏洞源于EnglishNormalizer类的normalize_numbers方法对数字字符串处理不当,可能导致正则表达式拒绝服务攻击。
英文描述:
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically within the `normalize_numbers()` method of the `EnglishNormalizer` class. This vulnerability affects versions up to 4.52.4 and is fixed in version 4.53.0. The issue arises from the method's handling of numeric strings, which can be exploited using crafted input strings containing long sequences of digits, leading to excessive CPU consumption. This vulnerability impacts text-to-speech and number normalization tasks, potentially causing service disruption, resource exhaustion, and API vulnerabilities.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| huggingface | huggingface/transformers | - | < 4.53.0 | - |
cpe:2.3:a:huggingface:huggingface_transformers:*:*:*:*:*:*:*:*
|
| huggingface | transformers | 4.52.4 | - | - |
cpe:2.3:a:huggingface:transformers:4.52.4:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
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-6051 |
2025-11-11 15:23:34 | 2025-11-11 07:40:47 |
| NVD | nvd_CVE-2025-6051 |
2025-11-11 15:01:02 | 2025-11-11 07:48:34 |
| CNNVD | cnnvd_CNNVD-202509-1851 |
2025-11-11 15:12:57 | 2025-11-11 08:00:10 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 其他
- cnnvd_id: 未提取 -> CNNVD-202509-1851
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 1 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']