Regular Expression Exploit in Hugging Face Transformers Library
CVE-2025-3933
What is CVE-2025-3933?
A Regular Expression Denial of Service (ReDoS) vulnerability has been identified in the Hugging Face Transformers library, specifically in the DonutProcessor class's token2json() method. This issue is particularly concerning in versions 4.50.3 and earlier, where crafted input strings exploit a regex pattern <s_(.*?)>. Such exploitation can lead to excessive CPU usage due to catastrophic backtracking, resulting in service disruptions and resource exhaustion. Those utilizing document processing tasks with the Donut model may face potential risks and performance degradation as a consequence.

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.52.1
References
CVSS V3.1
CVSS V3.0
Timeline
Vulnerability published
Vulnerability Reserved
