
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-3263 is a Regular Expression Denial of Service (ReDoS) vulnerability in the Hugging Face Transformers library, specifically within the get_configuration_file() function of the transformers.configuration_utils module. The vulnerability affects versions starting from 4.49.0 and is resolved in version 4.51.0. It was disclosed on July 7, 2025, and carries a CVSS v3.0 base score of 5.3 (Medium) (GitHub Advisory, Red Hat Bugzilla).
The root cause is an inefficient regular expression pattern config\.(.*)\.json used in the get_configuration_file() function, classified as CWE-1333 (Inefficient Regular Expression Complexity). The greedy (.*) quantifier between two literal dot-escaped segments enables catastrophic backtracking when processing specially crafted input strings, causing exponential CPU consumption. An unauthenticated remote attacker can trigger this condition by supplying a malicious configuration file name string to any application endpoint that invokes this function, requiring no privileges or user interaction. A proof-of-concept is publicly available via the huntr.com bug bounty platform (huntr PoC, GitHub Advisory).
Successful exploitation results in excessive CPU consumption on the affected host, leading to model serving disruption, resource exhaustion, and significantly increased application latency. The impact is limited to availability — there is no confidentiality or integrity impact. Applications built on the Hugging Face Transformers library (versions 4.49.0 to below 4.51.0) that expose configuration file resolution to external input are at risk of denial of service (GitHub Advisory, Red Hat Bugzilla).
A proof-of-concept exploit is publicly available on huntr.com, submitted through the huntr bug bounty program. There is no current evidence of in-the-wild exploitation or threat actor attribution. The EPSS score is approximately 0.042% (Feedly data) to 0.096% (GitHub Advisory), placing it in the lower percentiles for near-term exploitation likelihood. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (huntr PoC, GitHub Advisory).
config\.(.*)\.json. For example, a long string like config. followed by many repeated characters and a non-matching suffix (e.g., config.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!) causes the regex engine to explore exponentially many paths.get_configuration_file() in transformers.configuration_utils.get_configuration_file() in transformers/configuration_utils.py; timeout errors or unresponsive model-serving endpoints coinciding with unusual input strings.config_name parameters containing patterns like config. followed by many repeated characters.The primary remediation is to upgrade the Hugging Face Transformers library to version 4.51.0 or later, which resolves the vulnerable regex pattern (pip install transformers>=4.51.0) (GitHub Advisory, GitHub Commit). As interim mitigations, implement input validation to sanitize or restrict configuration file name inputs before they reach the library, apply timeout mechanisms for regex processing, and monitor application CPU usage for anomalies. Organizations should prioritize upgrading any internet-facing services that accept user-controlled model or configuration names.
Red Hat tracked the vulnerability via their security response process (Bugzilla bug 2376773) and assigned it medium severity. The GitHub Advisory Database published and reviewed the advisory on July 7–8, 2025. No notable public researcher commentary or significant social media discussion has been identified beyond standard vulnerability aggregator coverage.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."