CVE-2026-129301
mail-parser uncaught exception in write_attachments() drops attachments
An attacker can email a hostile attachment that stops later attachments from being saved, hiding them from scanners.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-129301 divulgada · CVSS 6.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 |
mail-parser from SpamScope has a flaw in `write_attachments()` where one hostile email attachment stops the save loop, leaving later attachments unwritten. An attacker can trigger this remotely by sending an email, without logging in or any user action, and can hide later payloads from scanners that read only the extraction directory while causing a loss of availability.
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.6.0 until 4.6.3, write_attachments() calls _safe_attachment_filename() and write_sample() without isolating failures for individual attacker-controlled MIME parts. An RFC 2231 filename containing a NUL, a basename exceeding NAME_MAX, or an undecodable base64 payload can raise ValueError, OSError, or binascii.Error and abort the entire save loop. Later attachments remain unwritten; when a caller catches only MailParserError, the failure is not surfaced through the expected library-exception path. If a downstream scanner or sandbox reads only the extraction directory, a payload after the crafted part can be missed even though it remains in the delivered message, and the aborted batch also causes availability loss. This issue is fixed in version 4.6.3.
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.3 | — | — |
4.6.3Arsenal 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-8cgq-x343-p74chttps://github.com/SpamScope/mail-parser/pull/171https://github.com/SpamScope/mail-parser/commit/11b894a0b8b3f11055a99caff118206138d1dabahttps://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097fhttps://github.com/SpamScope/mail-parser/releases/tag/4.6.3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
