Regular Expression Denial of Service (ReDoS) in huggingface/transformers
Published Jul 7, 2025
7.5
HIGHCVSS 3.1
EPSS 0.46%
Description
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository, specifically in version 4.49.0. The vulnerability is due to inefficient regular expression complexity in the `SETTING_RE` variable within the `transformers/commands/chat.py` file. The regex contains repetition groups and non-optimized quantifiers, leading to exponential backtracking when processing 'almost matching' payloads. This can degrade application performance and potentially result in a denial-of-service (DoS) when handling specially crafted input strings. The issue is fixed in version 4.51.0.
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.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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1 other source (GHSA) ▾
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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 3, 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 3, 2026 | 0.46% (0.00460) | 37.71th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.43% (0.00430) | 34.10th | 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-3262 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2376761 Issue Tracking
- https://github.com/advisories/GHSA-489j-g2vx-39wf Advisory
- https://github.com/huggingface/transformers/commit/0720e206c6ba28887e4d60ef60a6a089f6c1cc76 Patch
- https://github.com/huggingface/transformers/commit/126abe3461762e5fc180e7e614391d1b4ab051ca
- https://huntr.com/bounties/ecf5ccc4-39e7-4fb3-b547-14a41d31a184 exploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-3262
- https://www.cve.org/CVERecord?id=CVE-2025-3262
Change history (0)
No recorded changes yet.