{"cve":"CVE-2025-3933","nvd":{"published":"2025-07-11T10:15:22.293","modified":"2026-06-17T09:20:57.223","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-1333"],"references":["https://github.com/huggingface/transformers/commit/ebbe9b12dd75b69f92100d684c47f923ee262a93","https://huntr.com/bounties/25282953-5827-4384-bb6f-5790d275721b"],"products":["huggingface:transformers"],"source":"nvd","synced_at":"2026-10-19T22:04:28.436527499+00:00"},"epss":{"cve":"CVE-2025-3933","score":0.00496,"percentile":0.42559,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-37mw-44qp-f5jm","url":"https://osv.dev/vulnerability/GHSA-37mw-44qp-f5jm","summary":"Transformers is vulnerable to ReDoS attack through its DonutProcessor class","modified":"2026-09-10T03:50:57.888142744Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.52.1"],"fixed":["4.52.1"]}]},{"id":"PYSEC-2026-1977","url":"https://osv.dev/vulnerability/PYSEC-2026-1977","summary":"Transformers is vulnerable to ReDoS attack through its DonutProcessor class","modified":"2026-07-07T17:48:11.555551442Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.52.1"],"fixed":["4.52.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}