{"id":"CVE-2025-6051","published":"2025-09-14T17:03:02Z","modified":"2025-09-15T15:59:54Z","title":"Regular Expression Denial of Service (ReDoS) in huggingface/transformers","vendor":"huggingface","product":"huggingface/transformers","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00557,"percentile":0.40084,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://huntr.com/bounties/af929523-7b59-418a-bf55-301830b2ac9d","tags":[]},{"url":"https://github.com/huggingface/transformers/commit/ba8eaba9865618253f997784aa565b96206426f0","tags":[]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":8.02},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"huggingface","affectedVersions":[{"vendor":"huggingface","product":"huggingface/transformers","versions":[">= unspecified, < 4.53.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-15T15:59:46.280744Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"transformers","vulnerableRanges":["<4.53.0"],"patched":["4.53.0"],"from":["GHSA-rcv9-qm8p-9p6j","PYSEC-2026-1988"],"provenance":"source"}],"summary":{"text":"A regular expression denial of service (ReDoS) flaw exists in the normalize_numbers() method of the EnglishNormalizer class in the huggingface/transformers library, affecting versions up to 4.52.4. An attacker able to send crafted input containing long runs of digits can cause excessive CPU consumption over the network, with no authentication or user interaction required, leading to service disruption in text-to-speech and number normalization workloads.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:06Z"},"euvd":{"id":"EUVD-2025-29125","exploited":false,"provenance":"source"}}