CVE-2026-129301
published medium CVSS 3.1 · 6.5mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SpamScope | — | mail-parser>= 4.6.0, < 4.6.3 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| SpamScope | mail-parser | >= 4.6.0, < 4.6.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-248 CWE-248: Uncaught Exception
- CWE-436 CWE-436: Interpretation Conflict
References
5- https://github.com/SpamScope/mail-parser/commit/11b894a0b8b3f11055a99caff118206138d1daba
- https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f
- https://github.com/SpamScope/mail-parser/pull/171
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.3
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-8cgq-x343-p74c
Provider assertions
2GitHub_M · cna
mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 27576815fa58983d5a81026618789cfcc47d70e82af8a00d808e347f0cf3c461
- Ingested
- 18 Nov 2026, 15:23:52 UTC
- Source record
- Official CVE record