cve.bz

CVE-2025-6638

7.5 highEPSS 0.6%

High (7.5) in huggingface transformers. EPSS 0.6% chance of exploitation in the next 30 days. Fixed in transformers 4.53.0.

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically affecting the MarianTokenizer's `remove_language_code()` method. This vulnerability is present in version 4.52.4 and has been fixed in version 4.53.0. The issue arises from inefficient regex processing, which can be exploited by crafted input strings containing malformed language code patterns, leading to excessive CPU consumption and potential denial of service.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% chance of exploitation in the next 30 days; higher than 46% of CVEs (scores of 2026-10-31)
CWE
CWE-1333
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-59p9-h35m-wg4gPyPItransformers<4.53.04.53.0
PYSEC-2026-1981PyPItransformers<4.53.04.53.0

References

Check your stackJSON