Hugging Face Transformers
cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*
- <= 4.50.3
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hugging Face Transformers library, specifically in the DonutProcessor class's token2json() method. This issue affects versions 4.50.3 and earlier, with the vulnerability stemming from a regex pattern that can be manipulated to cause significant CPU strain through catastrophic backtracking. Such exploitation could disrupt services, exhaust resources, and potentially expose API vulnerabilities, particularly in document processing tasks using the Donut model.
Exploitation of this vulnerability leads to excessive CPU consumption, causing service disruptions and resource exhaustion. Additionally, it could expose vulnerabilities in the API service, impacting document processing tasks that utilize the Donut model.
Users can upgrade to version 4.52.1 or later to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.