← Übersicht Nicht im beobachteten Stack

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

CVE-2025-2099 · GHSA-qq3j-4f4f-9583 · PYSEC-2025-40 · WID-SEC-W-2025-1707

Hoch · CVSS 7.5 BSI: mittelRed Hat: Moderate Netzwerk · ohne Login Kein Fix bekannt

Veröffentlicht
19.05.2025 13:22
Zuletzt geändert
10.06.2026
EPSS (30 Tage)
0.6 %
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Beschreibung

Originaltext der Quelle, nicht übersetzt.

A vulnerability in the `preprocess_string()` function of the `transformers.testing_utils` module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack. The regular expression used to process code blocks in docstrings contains nested quantifiers, leading to exponential backtracking when processing input with a large number of newline characters. An attacker can exploit this by providing a specially crafted payload, causing high CPU usage and potential application downtime, effectively resulting in a Denial of Service (DoS) scenario.

Status beim Hersteller

Red Hat stuft seine Produktlinien ein: 2 betroffen, 1 behoben, 6 nicht betroffen.

Red Hat Ansible Automation Platform Betroffen
Red Hat Enterprise Linux AI (RHEL AI) BetroffenFix ausstehend rhelai1/bootc-intel-rhel9, rhelai1/instructlab-intel-rhel9
Red Hat Enterprise Linux AI (RHEL AI) Betroffenwird nicht behoben rhelai1/docling-serve-rhel9, rhelai1/ui-rhel9
Red Hat Ansible Automation Platform 2.5 for RHEL 8 Behoben ansible-automation-platform-25/lightspeed-chatbot-rhel8 RHSA-2025:12791
Nicht betroffen (6)
OpenShift LightspeedNicht betroffenverwundbarer Code nicht enthaltenopenshift-lightspeed-tech-preview/lightspeed-service-api-rhel9
Red Hat Ansible Automation Platform 2Nicht betroffenverwundbarer Code nicht enthaltenansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-25/de-minimal-rhel8, ansible-automation-platform-25/de-minimal-rhel9
Red Hat Ansible Automation Platform 2.5 for RHEL 8Nicht betroffenverwundbarer Code nicht enthaltenansible-automation-platform-25/aap-cloud-billing-rhel8, ansible-automation-platform-25/aap-cloud-billing-rhel8-operator, ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8, ansible-automation-platform-25/aap-cloud-ui-rhel8, ansible-automation-platform-25/aap-cloud-ui-rhel8-operator, ansible-automation-platform-25/aap-must-gather-rhel8, ansible-automation-platform-25/ansible-builder-rhel8, ansible-automation-platform-25/ansible-dev-tools-rhel8, ansible-automation-platform-25/ansible-python-base-rhel8, ansible-automation-platform-25/ansible-python-toolkit-rhel8, ansible-automation-platform-25/controller-rhel8, ansible-automation-platform-25/controller-rhel8-operator, ansible-automation-platform-25/de-minimal-rhel8, ansible-automation-platform-25/de-supported-rhel8, ansible-automation-platform-25/eda-controller-rhel8, ansible-automation-platform-25/eda-controller-rhel8-operator, ansible-automation-platform-25/eda-controller-ui-rhel8, ansible-automation-platform-25/ee-minimal-rhel8, ansible-automation-platform-25/ee-supported-rhel8, ansible-automation-platform-25/gateway-proxy-rhel8, ansible-automation-platform-25/gateway-rhel8, ansible-automation-platform-25/gateway-rhel8-operator, ansible-automation-platform-25/hub-rhel8, ansible-automation-platform-25/hub-rhel8-operator, ansible-automation-platform-25/hub-web-rhel8 und 7 weitere
Red Hat Ansible Automation Platform 2.5 for RHEL 9Nicht betroffenverwundbarer Code nicht enthaltenansible-automation-platform-25/ansible-builder-rhel9, ansible-automation-platform-25/ansible-python-base-rhel9, ansible-automation-platform-25/ansible-python-toolkit-rhel9, ansible-automation-platform-25/de-minimal-rhel9, ansible-automation-platform-25/de-supported-rhel9, ansible-automation-platform-25/ee-cloud-services-rhel9, ansible-automation-platform-25/ee-minimal-rhel9, ansible-automation-platform-25/ee-supported-rhel9
Red Hat Enterprise Linux AI (RHEL AI)Nicht betroffenverwundbarer Code nicht enthaltenrhelai1/bootc-amd-rhel9, rhelai1/bootc-aws-nvidia-rhel9, rhelai1/bootc-azure-amd-rhel9, rhelai1/bootc-azure-nvidia-rhel9, rhelai1/bootc-gcp-nvidia-rhel9, rhelai1/bootc-nvidia-rhel9, rhelai1/instructlab-amd-rhel9, rhelai1/instructlab-nvidia-rhel9
Red Hat OpenShift AI (RHOAI)Nicht betroffenverwundbarer Code nicht enthaltenrhoai/odh-training-operator-rhel8
Weitere betroffene Pakete (4)
CVEhuggingface/huggingface/transformers4.50.0CVE-2025-2099
NVDhuggingface:transformerskein Fix bekanntCVE-2025-2099
PyPItransformers4.50.0GHSA-qq3j-4f4f-9583
PyPItransformers4.49.0PYSEC-2025-40

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · ohne Login) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.