{"cve":"CVE-2024-12720","nvd":{"published":"2025-03-20T10:15:29.507","modified":"2026-06-17T07:00:20.557","status":"Analyzed","description":"A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_nougat_fast.py. The vulnerability occurs in the post_process_single() function, where a regular expression processes specially crafted input. The issue stems from the regex exhibiting exponential time complexity under certain conditions, leading to excessive backtracking. This can result in significantly high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.46.3 (latest).","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:H","score":7.5},"cwes":["CWE-1333"],"references":["https://github.com/huggingface/transformers/commit/deac971c469bcbb182c2e52da0b82fb3bf54cccf","https://huntr.com/bounties/4bed1214-7835-4252-a853-22bbad891f98","https://huntr.com/bounties/4bed1214-7835-4252-a853-22bbad891f98"],"products":["huggingface:transformers"],"source":"nvd","synced_at":"2026-10-19T22:00:17.429720821+00:00"},"epss":{"cve":"CVE-2024-12720","score":0.00747,"percentile":0.54878,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6rvg-6v2m-4j46","url":"https://osv.dev/vulnerability/GHSA-6rvg-6v2m-4j46","summary":"Transformers Regular Expression Denial of Service (ReDoS) vulnerability","modified":"2026-08-13T20:11:58.209202163Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.48.0"],"fixed":["4.48.0"]}]},{"id":"PYSEC-2026-1982","url":"https://osv.dev/vulnerability/PYSEC-2026-1982","summary":"Transformers Regular Expression Denial of Service (ReDoS) vulnerability","modified":"2026-07-07T17:48:13.631145657Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.48.0"],"fixed":["4.48.0"]}]}],"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."]}