PoC Monitor
← All CVEs
CVE-2025-6638published 12 Sep 2025 10:46 UTCData: JSON · API

Huggingface huggingface/transformers

Regular Expression Denial of Service (ReDoS) in huggingface/transformers

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by NVD · CWE-1333
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

huggingface huggingface/transformers
  • >= unspecified, < 4.53.0

Fixed in 4.53.0

Mitigation

Upgrade huggingface/transformers to 4.53.0 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published12 Sep 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.