GHSA-59P9-H35M-WG4G
Hugging Face Transformers is vulnerable to ReDoS through its MarianTokenizer
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 4.53.0 | transformers · -78 d desde divulgación | |
| Divulgación | Publicada | GHSA-59P9-H35M-WG4G divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically affecting the MarianTokenizer's `remove_language_code()` method. This vulnerability is present in version 4.52.4 and has been fixed in version 4.53.0. The issue arises from inefficient regex processing, which can be exploited by crafted input strings containing malformed language code patterns, leading to excessive CPU consumption and potential denial of service.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypitransformers |
Corregida | 4.53.0 | -78 d | 5.23.0 no afectada |
4.53.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-6638https://github.com/huggingface/transformers/commit/47c34fba5c303576560cb29767efb452ff12b8behttps://github.com/huggingface/transformers/commit/d37f7517972f67e3f2194c000ed0f87f064e5099https://github.com/huggingface/transformershttps://huntr.com/bounties/6a6c933f-9ce8-4ded-8b3b-2c1444c61f36Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
