CVE-2025-3263 – transformers
Package
Manager: pip
Name: transformers
Vulnerable Version: >=0 <4.51.0
Severity
Level: Medium
CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00077 pctl0.23711
Details
Transformers's ReDoS vulnerability in get_configuration_file can lead to catastrophic backtracking 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.
Metadata
Created: 2025-07-07T12:30:22Z
Modified: 2025-07-08T16:33:26Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/07/GHSA-q2wp-rjmx-x6x9/GHSA-q2wp-rjmx-x6x9.json
CWE IDs: ["CWE-1333"]
Alternative ID: GHSA-q2wp-rjmx-x6x9
Finding: F211
Auto approve: 1