PoC Monitor
← All CVEs
CVE-2025-3262published 7 Jul 2025 09:54 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 huggingface/transformers repository, specifically in version 4.49.0. The vulnerability is due to inefficient regular expression complexity in the `SETTING_RE` variable within the `transformers/commands/chat.py` file. The regex contains repetition groups and non-optimized quantifiers, leading to exponential backtracking when processing 'almost matching' payloads. This can degrade application performance and potentially result in a denial-of-service (DoS) when handling specially crafted input strings. The issue is fixed in version 4.51.0.

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.51.0

Fixed in 4.51.0

Mitigation

Upgrade huggingface/transformers to 4.51.0 or later.

References

Timeline

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

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.