{"id":"CVE-2025-3262","state":"PUBLISHED","title":"Regular Expression Denial of Service (ReDoS) in huggingface/transformers","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.","publishedAt":"2025-07-07T09:54:39.079Z","updatedAt":"2025-07-07T15:19:42.413Z","severity":{"score":5.3,"label":"Medium","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["huggingface huggingface/transformers"],"affected":[{"vendor":"huggingface","product":"huggingface/transformers","versions":[{"version":"unspecified","status":"affected","lessThan":"4.51.0","versionType":"custom"}]}],"references":["https://huntr.com/bounties/ecf5ccc4-39e7-4fb3-b547-14a41d31a184","https://github.com/huggingface/transformers/commit/0720e206c6ba28887e4d60ef60a6a089f6c1cc76"],"weaknesses":["CWE-1333"],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/3xxx/CVE-2025-3262.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-3262","state":"PUBLISHED","datePublished":"2025-07-07T09:54:39.079Z","dateUpdated":"2025-07-07T15:19:42.413Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2025-04-04T12:40:28.677Z"},"containers":{"cna":{"title":"Regular Expression Denial of Service (ReDoS) in huggingface/transformers","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"huggingface","product":"huggingface/transformers","versions":[{"version":"unspecified","status":"affected","lessThan":"4.51.0","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/ecf5ccc4-39e7-4fb3-b547-14a41d31a184"},{"url":"https://github.com/huggingface/transformers/commit/0720e206c6ba28887e4d60ef60a6a089f6c1cc76"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","baseScore":5.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1333","type":"CWE","lang":"en","description":"CWE-1333 Inefficient Regular Expression Complexity"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2025-07-07T09:54:39.079Z"},"source":{"advisory":"ecf5ccc4-39e7-4fb3-b547-14a41d31a184","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://huntr.com/bounties/ecf5ccc4-39e7-4fb3-b547-14a41d31a184","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-07-07T15:19:35.031775Z","id":"CVE-2025-3262","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-07-07T15:19:42.413Z"}}]}}}