{"id":"CVE-2025-6051","aliases":["CVE-2025-6051","GHSA-rcv9-qm8p-9p6j","PYSEC-2026-1988"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS) in huggingface/transformers","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se descubrió una vulnerabilidad de denegación de servicio por expresión regular (ReDoS) en la biblioteca Hugging Face Transformers, específicamente dentro del método 'normalize_numbers()' de la clase 'EnglishNormalizer'. Esta vulnerabilidad afecta a las versiones hasta la 4.52.4 y está corregida en la versión 4.53.0. El problema surge del manejo de cadenas numéricas por parte del método, que puede ser explotado utilizando cadenas de entrada manipuladas que contengan largas secuencias de dígitos, lo que lleva a un consumo excesivo de CPU. Esta vulnerabilidad impacta en las tareas de texto a voz y normalización de números, potencialmente causando interrupción del servicio, agotamiento de recursos y vulnerabilidades de API.","source":"nvd"}],"published":"2025-09-14T17:03:02.953Z","modified":"2026-09-30T23:10:00.237Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"4.53.0","status":"affected"}],"vendor":"huggingface","product":"huggingface/transformers","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.53.0"}],"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","source":"ghsa"},{"ranges":[{"status":"affected","version":"4.52.4"}],"vendor":"huggingface","product":"transformers","cpe":"cpe:2.3:a:huggingface:transformers:4.52.4:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.53.0"}],"ecosystem":"PyPI","package":"transformers","purl":"pkg:pypi/transformers","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/af929523-7b59-418a-bf55-301830b2ac9d","tags":["exploit","issue-tracking","patch","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/huggingface/transformers/commit/ba8eaba9865618253f997784aa565b96206426f0","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6051","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/huggingface/transformers/pull/38844","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/huggingface/transformers/commit/54a02160eb030da9be18231c77791f2eb3a52216","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/huggingface/transformers","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/transformers","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-rcv9-qm8p-9p6j","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-09-15T15:59:46.280Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-6051","url":"https://www.cve.org/CVERecord?id=CVE-2025-6051","licence":"CVE Terms of Use","modified":"2025-09-15T15:59:54.371Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rcv9-qm8p-9p6j","url":"https://github.com/advisories/GHSA-rcv9-qm8p-9p6j","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:28.694Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-6051","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6051","licence":"Public domain","modified":"2026-09-30T23:10:00.237Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1988","url":"https://osv.dev/vulnerability/PYSEC-2026-1988","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:14.970Z"}],"updatedAt":"2026-11-25T22:59:04.628Z","epss":{"score":0.00401,"percentile":0.36412,"date":"2026-12-01T12:00:22.000Z"}}