CVE-2025-3263
July 07, 2025
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.
Affected Packages
transformers (CONDA):
Affected version(s) >=2.1.1 <4.51.0Fix Suggestion:
Update to version 4.51.0https://github.com/huggingface/transformers.git (GITHUB):
Affected version(s) >=v0.1.2 <v4.51.0Fix Suggestion:
Update to version v4.51.0transformers (PYTHON):
Affected version(s) >=0.1 <4.51.0Fix Suggestion:
Update to version 4.51.0transformers (PYTHON):
Affected version(s) >=0.1 <4.51.0Fix Suggestion:
Update to version 4.51.0Additional Notes
The description of this vulnerability differs from MITRE.
Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Inefficient Regular Expression Complexity
EPSS
Base Score:
0.03