{"id":"CVE-2025-3263","published":"2025-07-07T09:54:59Z","modified":"2025-07-07T14:51:54Z","title":"Regular Expression Denial of Service (ReDoS) in huggingface/transformers","vendor":"huggingface","product":"huggingface/transformers","tier":"tail","description":{"text":"A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically in the `get_configuration_file()` function within the `transformers.configuration_utils` module. The affected version is 4.49.0, and the issue is resolved in version 4.51.0. The vulnerability arises from the use of a regular expression pattern `config\\.(.*)\\.json` that can be exploited to cause excessive CPU consumption through crafted input strings, leading to catastrophic backtracking. This can result in model serving disruption, resource exhaustion, and increased latency in applications using the library.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00496,"percentile":0.43451,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://huntr.com/bounties/c7a69150-54f8-4e81-8094-791e7a2a0f29","tags":[]},{"url":"https://github.com/huggingface/transformers/commit/0720e206c6ba28887e4d60ef60a6a089f6c1cc76","tags":[]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":8.69},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"huggingface","affectedVersions":[{"vendor":"huggingface","product":"huggingface/transformers","versions":[">= unspecified, < 4.51.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-07-07T14:49:04.994384Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"transformers","vulnerableRanges":["<4.51.0"],"patched":["4.51.0"],"from":["GHSA-q2wp-rjmx-x6x9","PYSEC-2026-1987"],"provenance":"source"}],"summary":{"text":"A regular expression denial of service (ReDoS) flaw exists in the get_configuration_file() function of the transformers.configuration_utils module in the Hugging Face Transformers library, where the pattern config\\.(.*)\\.json can be made to backtrack catastrophically. An attacker with network access and no authentication or user interaction can send crafted input strings to consume excessive CPU, disrupting model serving and increasing latency in applications that use the library.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:53Z"},"euvd":{"id":"EUVD-2025-20215","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-1194","published":"2025-04-29","fixed":"4.50.0","kev":false},{"cve":"CVE-2025-2099","published":"2025-05-19","fixed":"4.50.0","kev":false,"link":{"from":"CVE-2025-2099","to":"CVE-2025-3263","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:transformers","fromFixed":"4.50.0","toFixed":"4.51.0","daysApart":49}]}},{"cve":"CVE-2025-3262","published":"2025-07-07","fixed":"4.51.0","kev":false},{"cve":"CVE-2025-3263","published":"2025-07-07","fixed":"4.51.0","kev":false},{"cve":"CVE-2025-3264","published":"2025-07-07","fixed":"4.51.0","kev":false},{"cve":"CVE-2025-3777","published":"2025-07-07","fixed":"4.52.1","kev":false,"link":{"from":"CVE-2025-3263","to":"CVE-2025-3777","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:transformers","fromFixed":"4.51.0","toFixed":"4.52.1","daysApart":0}]}},{"cve":"CVE-2025-3933","published":"2025-07-11","fixed":"4.52.1","kev":false,"link":{"from":"CVE-2025-3263","to":"CVE-2025-3933","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:transformers","fromFixed":"4.51.0","toFixed":"4.52.1","daysApart":4},{"kind":"similar","provenance":"machine","score":0.35,"basis":"same product + CWE + description similarity"}]}}],"package":"PyPI:transformers"}}