GHSA-QQ3J-4F4F-9583
Hugging Face Transformers Regular Expression Denial of Service
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 4.50.0 | transformers · -59 d desde divulgación | |
| Divulgación | Publicada | GHSA-QQ3J-4F4F-9583 divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
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`
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypitransformers |
Corregida | 4.50.0 | -59 d | 5.23.0 no afectada |
4.50.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://nvd.nist.gov/vuln/detail/CVE-2025-2099https://github.com/huggingface/transformers/pull/36648https://github.com/huggingface/transformers/commit/8cb522b4190bd556ce51be04942720650b1a3e57https://github.com/huggingface/transformershttps://github.com/pypa/advisory-database/tree/main/vulns/transformers/PYSEC-2025-40.yamlhttps://huntr.com/bounties/97b780f3-ffca-424f-ad5d-0e1c57a5bde4Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
