Regular Expression Denial of Service (ReDoS) in huggingface/transformers
Published Jul 7, 2025
5.3
MEDIUMCVSS 3.0
EPSS 0.46%
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.
Affected products
-
- Version unspecifiedStatusaffectedConstraints<4.51.0
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Huggingface | Huggingface/transformers | n/a |
|
- ≥ 4.49.0 · < 4.51.0
No data.
OpenShift Lightspeed
openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9
Not affected
OpenShift Lightspeed
openshift-lightspeed/lightspeed-service-api-rhel9
Not affected
Red Hat AI Inference Server
rhaiis/vllm-cuda-rhel9
Not affected
Red Hat AI Inference Server
rhaiis/vllm-rocm-rhel9
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-24/de-minimal-rhel8
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-24/de-minimal-rhel9
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-24/ee-supported-rhel8
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-24/ee-supported-rhel9
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-25/ansible-dev-tools-rhel8
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-25/de-minimal-rhel8
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-25/de-minimal-rhel9
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-25/ee-supported-rhel8
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-25/ee-supported-rhel9
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-25/lightspeed-chatbot-rhel8
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/bootc-amd-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/bootc-aws-nvidia-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/bootc-azure-amd-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/bootc-azure-nvidia-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/bootc-gcp-nvidia-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/bootc-intel-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/bootc-nvidia-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/disk-image-nvidia-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/gemma-2-9b-it
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/gemma-2-9b-it-fp8
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/granite-3.1-8b-lab-v2.1
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/granite-3.1-8b-starter-v2.1
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/instructlab-amd-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/instructlab-intel-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/instructlab-nvidia-rhel9
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/knowledge-adapter-v3
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/mixtral-8x7b-instruct-v0-1
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-gemma-2-9b-it
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-gemma-2-9b-it-fp8
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-granite-3-1-8b-lab-v2
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-granite-3-1-8b-lab-v2-1
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-granite-3-1-8b-starter-v2
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-granite-3-1-8b-starter-v2-1
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-knowledge-adapter-v3
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-mixtral-8x7b-instruct-v0-1
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-prometheus-8x7b-v2-0
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-skills-adapter-v3
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/modelcar-snowflake-arctic-embed-l-v2.0
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/prometheus-8x7b-v2-0
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/skills-adapter-v3
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-codeflare-operator-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-data-science-pipelines-operator-controller-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-kf-notebook-controller-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-kuberay-operator-controller-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-kueue-controller-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-ml-pipelines-runtime-generic-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-mlmd-grpc-server-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-mm-rest-proxy-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-model-registry-operator-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-model-registry-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-modelmesh-serving-controller-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-notebook-controller-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-training-operator-rhel8
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-training-operator-rhel9
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-trustyai-service-operator-rhel9
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 | Not affected | n/a |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-service-api-rhel9 | Not affected | n/a |
| Red Hat AI Inference Server | rhaiis/vllm-cuda-rhel9 | Not affected | n/a |
| Red Hat AI Inference Server | rhaiis/vllm-rocm-rhel9 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/de-minimal-rhel8 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/de-minimal-rhel9 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/ee-supported-rhel8 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/ee-supported-rhel9 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/ansible-dev-tools-rhel8 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/de-minimal-rhel8 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/de-minimal-rhel9 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/ee-supported-rhel8 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/ee-supported-rhel9 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/lightspeed-chatbot-rhel8 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-amd-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-aws-nvidia-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-azure-amd-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-azure-nvidia-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-gcp-nvidia-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-intel-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-nvidia-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/disk-image-nvidia-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/gemma-2-9b-it | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/gemma-2-9b-it-fp8 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/granite-3.1-8b-lab-v2.1 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/granite-3.1-8b-starter-v2.1 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/instructlab-amd-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/instructlab-intel-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/instructlab-nvidia-rhel9 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/knowledge-adapter-v3 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/mixtral-8x7b-instruct-v0-1 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-gemma-2-9b-it | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-gemma-2-9b-it-fp8 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-granite-3-1-8b-lab-v2 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-granite-3-1-8b-lab-v2-1 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-granite-3-1-8b-starter-v2 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-granite-3-1-8b-starter-v2-1 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-knowledge-adapter-v3 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-mixtral-8x7b-instruct-v0-1 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-prometheus-8x7b-v2-0 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-skills-adapter-v3 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/modelcar-snowflake-arctic-embed-l-v2.0 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/prometheus-8x7b-v2-0 | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/skills-adapter-v3 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-codeflare-operator-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-data-science-pipelines-operator-controller-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-kf-notebook-controller-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-kuberay-operator-controller-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-kueue-controller-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-runtime-generic-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mlmd-grpc-server-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mm-rest-proxy-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-model-registry-operator-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-model-registry-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-modelmesh-serving-controller-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-notebook-controller-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-training-operator-rhel8 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-training-operator-rhel9 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-trustyai-service-operator-rhel9 | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
YesTechnical Impact
PartialDecision
n/aAssessed Jul 7, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2025–2026- EPSS v4
- EPSS v5
Percentile over time
- EPSS v4
- EPSS v5
Table of values (3 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.46% (0.00461) | 37.66th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.43% (0.00435) | 34.47th | v5 (v2026.06.15) |
| Jul 7, 2025 | 0.04% (0.00042) | 12.10th | v4 (v2025.03.14) |
References (8)
- https://access.redhat.com/security/cve/CVE-2025-3263 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2376773 Issue Tracking
- https://github.com/advisories/GHSA-q2wp-rjmx-x6x9 Advisory
- https://github.com/huggingface/transformers/commit/0720e206c6ba28887e4d60ef60a6a089f6c1cc76 Patch
- https://github.com/huggingface/transformers/commit/126abe3461762e5fc180e7e614391d1b4ab051ca
- https://huntr.com/bounties/c7a69150-54f8-4e81-8094-791e7a2a0f29 ExploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-3263
- https://www.cve.org/CVERecord?id=CVE-2025-3263
Change history (0)
No recorded changes yet.