CVE-2025-2099
highPriorität · verfolgen · 30EPSS 0.006 · 49. PerzentilDEEUUSEPSS · bewertet 2026-10-27
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.
cvss
Technischer Schweregrad, 0–10. Eine Zeile je Quelle.
Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen⚠ Quellen uneinig · medium–high · 5.3–7.5
SSVC
Eine Handlungsentscheidung — aus Ausnutzung und Auswirkung.
schwächen
Die CWE-Schwächeklassen, zu denen dies gehört.
betroffene Produkte (5)
Betroffene Produkte und Versionsbereiche.
- Red Hat Ansible Automation Platform 2.5alle Versionencert_bundDEcpe:/a:redhat:ansible_automation_platform:2.5
Advisories (3)
Hersteller- und Ökosystem-Meldungen dazu.
- WID-SEC-W-2025-1707Red Hat Ansible Automation Platform: Schwachstelle ermöglicht Denial of ServiceDeutsch2025-08-04csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in Red Hat Ansible Automation Platform ausnutzen, um einen Denial of Service Angriff durchzuführen.
- GHSA-qq3j-4f4f-9583Hugging Face Transformers Regular Expression Denial of Service2025-05-19ghsa · osvUS
A Regular Expression Denial of Service (ReDoS) exists in the `preprocess_string()` function of the `transformers.testing_utils` module. In versions **before 4.50.0**, the regex used to process code blocks in docstrings contains nested quantifiers that can trigger catastrophic backtracking when given inputs with many newline characters. An attacker who can supply such input to `preprocess_string()` (or code paths that call it) can force excessive CPU usage and degrade availability. **Fix:** released in **4.50.0**, which rewrites the regex to avoid the inefficient pattern. ([GitHub][1]) * **Affected:** `< 4.50.0` * **Patched:** `4.50.0`
- PYSEC-2025-402025-05-19vendor · osvUS
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.
auch bekannt als (6)
Weitere Namen und Kennungen dieser Entität.
quellen
Welche Quellen diesen Datensatz belegen und wann.
Referenzen (8)
Externe Belege — Patches, Meldungen, Analysen.
- https://access.redhat.com/security/cve/cve-2025-2099cnnvd
- https://github.com/huggingface/transformers/commit/8cb522b4190bd556ce51be04942720650b1a3e57cnnvd
- https://github.com/huggingface/transformers/releasesPatchcnnvd
- https://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4cnnvd
- https://github.com/huggingface/transformers/commit/8cb522b4190bd556ce51be04942720650b1a3e57enisa_euvd
- https://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4enisa_euvd
- https://github.com/huggingface/transformers/commit/8cb522b4190bd556ce51be04942720650b1a3e57Patchnvd
- https://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4ExploitThird Party Advisorynvd
Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan