CVE-2026-129295
mail-parser denial of service in email header parsing
A remote attacker can send one small, well-formed email to keep parsing workers busy for long periods.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-129295 divulgada · CVSS 7.5 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The SpamScope mail-parser Python library can be forced into excessive processing when parsing attacker-controlled email headers. A remote attacker can trigger this without logging in by sending a small, well-formed message, which can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods.
Affects mail-parser 4.2.0 up to but not including 4.6.1, via the address-header fallback in email header parsing. Fixed in 4.6.1.
Descripción original del registro (GitHub_M)
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_FALLBACK_RE fallback when strict address parsing yields no usable address, and overlapping quantifiers rescan padded address headers quadratically or cubically. In src/mailparser/const.py, parse_received() applies _CLAUSE_SPLITTER to uncollapsed whitespace in a Received header, causing quadratic backtracking when a whitespace run is not followed by a clause keyword. A small, well-formed message can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods. This issue is fixed in version 4.6.1.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
mail-parser |
Corregida | 4.6.1 | — | — |
4.6.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vvhttps://github.com/SpamScope/mail-parser/pull/166https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2chttps://github.com/SpamScope/mail-parser/releases/tag/4.6.1Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
