{"id":"CVE-2025-3262","aliases":["GHSA-489j-g2vx-39wf","PYSEC-2026-1979"],"url":"https://o3.security/vulnerability/CVE-2025-3262","summary":"Regular Expression Denial of Service (ReDoS) in huggingface/transformers","details":"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.","published":"2025-07-07T09:54:39.079Z","modified":"2026-08-08T03:47:52.919156738Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"transformers","fixedVersion":"4.51.0"}],"fix":{"url":"https://github.com/huggingface/transformers/commit/0720e206c6ba28887e4d60ef60a6a089f6c1cc76","label":"huggingface/transformers@0720e20"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/ecf5ccc4-39e7-4fb3-b547-14a41d31a184"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3262.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-3262"},{"type":"FIX","url":"https://github.com/huggingface/transformers/commit/0720e206c6ba28887e4d60ef60a6a089f6c1cc76"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T03:47:52.919156738Z"}}