{"cve":"CVE-2025-3262","nvd":{"published":"2025-07-07T10:15:27.200","modified":"2026-06-17T09:19:32.770","status":"Analyzed","description":"A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository, specifically in version 4.49.0. The vulnerability is due to inefficient regular expression complexity in the `SETTING_RE` variable within the `transformers/commands/chat.py` file. The regex contains repetition groups and non-optimized quantifiers, leading to exponential backtracking when processing 'almost matching' payloads. This can degrade application performance and potentially result in a denial-of-service (DoS) when handling specially crafted input strings. The issue is fixed in version 4.51.0.","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/0720e206c6ba28887e4d60ef60a6a089f6c1cc76","https://huntr.com/bounties/ecf5ccc4-39e7-4fb3-b547-14a41d31a184","https://huntr.com/bounties/ecf5ccc4-39e7-4fb3-b547-14a41d31a184"],"products":["huggingface:transformers"],"source":"nvd","synced_at":"2026-10-19T22:04:28.436527499+00:00"},"epss":{"cve":"CVE-2025-3262","score":0.00494,"percentile":0.4246,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-489j-g2vx-39wf","url":"https://osv.dev/vulnerability/GHSA-489j-g2vx-39wf","summary":"Transformers vulnerable to ReDoS attack through its SETTING_RE variable","modified":"2026-07-07T17:56:54.298553138Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":[">=4.49.0 <4.51.0"],"fixed":["4.51.0"]}]},{"id":"PYSEC-2026-1979","url":"https://osv.dev/vulnerability/PYSEC-2026-1979","summary":"Transformers vulnerable to ReDoS attack through its SETTING_RE variable","modified":"2026-07-07T17:48:13.616945161Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":[">=4.49.0 <4.51.0"],"fixed":["4.51.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."]}