Denial of Service Vulnerability in Hugging Face Transformers Module
CVE-2025-2099
What is CVE-2025-2099?
A vulnerability exists in the preprocess_string() function of the transformers.testing_utils module in Hugging Face's Transformers library, specifically in version v4.48.3. This issue arises from a poorly constructed regular expression used to handle code blocks in docstrings, which employs nested quantifiers. As a result, the handling of input with numerous newline characters can trigger significant CPU load due to exponential backtracking, allowing an attacker to execute a Regular Expression Denial of Service (ReDoS) attack. By crafting a specific input payload, attackers may cause application downtime, leading to a potential DoS situation.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
huggingface/transformers < 4.50.0
References
CVSS V3.1
CVSS V3.0
Timeline
Vulnerability published
Vulnerability Reserved
