CVE-2025-3263

Regular Expression Denial of Service (ReDoS) in huggingface/transformers

Description

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.

Category

5.3
CVSS
Severity: Medium
CVSS 3.0 •
EPSS 0.04%
Affected: huggingface huggingface/transformers
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-3263?
CVE-2025-3263 has been scored as a medium severity vulnerability.
How to fix CVE-2025-3263?
To fix CVE-2025-3263, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2025-3263 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2025-3263 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-3263?
CVE-2025-3263 affects huggingface huggingface/transformers.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.