CVE-2025-3933 – transformers
Package
Manager: pip
Name: transformers
Vulnerable Version: >=0 <4.52.1
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00071 pctl0.22314
Details
Transformers is vulnerable to ReDoS attack through its DonutProcessor class 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.51.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.
Metadata
Created: 2025-07-11T12:30:32Z
Modified: 2025-08-07T14:55:33Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/07/GHSA-37mw-44qp-f5jm/GHSA-37mw-44qp-f5jm.json
CWE IDs: ["CWE-1333"]
Alternative ID: GHSA-37mw-44qp-f5jm
Finding: F211
Auto approve: 1