GHSA-qq3j-4f4f-9583 · Severity: medium · Ecosystem: pip — Hugging Face Transformers Regular Expression Denial of Service
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.
Conclusion & alert: CVE-2025-2099 is rated Exploit Available (54.1/100): CVSS High severity, with low exploitation likelihood (EPSS 0.09%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-15 | 0.03% | 0.09% | +0.06% |
| 2 | 2026-02-18 | 0.11% | 0.03% | -0.08% |
| 3 | 2025-11-21 | — | 0.11% | — |
Full EPSS history (8 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
| 5.3 | 3.0 | MEDIUM |
|
3.9 | 1.4 | [email protected] |
GHSA-qq3j-4f4f-9583 · Severity: medium · Ecosystem: pip — Hugging Face Transformers Regular Expression Denial of Service
| vendor | priority | summary | link |
|---|---|---|---|
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2025-2099 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| huggingface | transformers | <= 4.48.3 | cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/huggingface/transformers/commit/8cb522b4190bd556ce51be04942720650b1a3e57 | Patch |
| https://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4 | Exploit Third Party Advisory |