CVE-2025-3933
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-07-11

Last updated on: 2025-08-07

Assigner: huntr.dev

Description
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically within the DonutProcessor class's `token2json()` method. This vulnerability affects versions 4.50.3 and earlier, and is fixed in version 4.52.1. The issue arises from the regex pattern `<s_(.*?)>` which can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic backtracking. This vulnerability can lead to service disruption, resource exhaustion, and potential API service vulnerabilities, impacting document processing tasks using the Donut model.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-07-11
Last Modified
2025-08-07
Generated
2026-05-07
AI Q&A
2025-07-11
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
huggingface transformers to 4.52.1 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1333 The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a Regular Expression Denial of Service (ReDoS) issue in the Hugging Face Transformers library, specifically in the DonutProcessor class's token2json() method. It occurs because of a problematic regex pattern `<s_(.*?)>` that can be exploited with crafted input strings to cause excessive CPU usage due to catastrophic backtracking.


How can this vulnerability impact me? :

The vulnerability can lead to service disruption and resource exhaustion by causing excessive CPU consumption. This can affect API services and document processing tasks that use the Donut model, potentially making these services unavailable or degraded.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, immediately upgrade the Hugging Face Transformers library to version 4.52.1 or later, where the issue in the DonutProcessor class's token2json() method is fixed. Avoid processing untrusted input with affected versions until the upgrade is applied.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart