Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend email with crafted Received header
-
DeliveryParser converts out-of-range date via calendar.timegm()
-
ExploitOverflowError/OSError raised outside MailParser* hierarchy
-
ExecutionUncaught exception aborts entire message parse
-
ImpactQueued message or batch dropped
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
|
| Exploitation Conditions | Exploitation requires that the target application parse attacker-supplied email through any mail-parser entry point (parse_from_string/bytes/file/file_obj or the CLI) using a vulnerable version (3.7.0 through 4.6.2) AND that the caller catch only the MailParser* exception hierarchy - if the caller already wraps calls in a bare 'except Exception', the crash is contained. No special product configuration is needed: the crash fires against default behavior whenever a Received header's trailing date has an out-of-range year or an oversized timezone offset. Limiting factors: impact is confined to availability (a lost message); it only escalates to batch loss when a single worker processes a queue, and applications that already handle non-mail-parser exceptions are unaffected. |
| Impact | This is a genuine but modest-severity availability issue, correctly scored CVSS 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L): a single attacker-controlled Received header reaches the vulnerable code over the network with no authentication (PR:N) and no user interaction, at low attack complexity (AC:L), but the only consequence is availability (A:L) - a dropped message or, where one worker drains a queue, a dropped batch. There is no confidentiality or integrity impact and no code execution despite the misleading 'Buffer Overflow' tag; CWE-248 (uncaught exception) is the accurate class. No EPSS score, KEV listing, or SSVC automatable/technical-impact fields were supplied, so exploitation-probability signals cannot be weighed; the only priority signal provided is the vuln.today 'this_month' decision label, consistent with a low-impact, easily-triggered DoS rather than an emergency. The GHSA advisory includes a working reproducer snippet, so a public PoC reference exists, but there is no indication of active exploitation. Net: a real, trivially-triggerable but low-impact denial-of-condition affecting a niche library - patch on a routine cycle, not an incident footing. |
| Exploit ScenarioDerived | An attacker sends an email containing a single crafted Received header whose trailing date carries an out-of-range year (e.g. 292277026596) or an enormous timezone offset to any pipeline that parses untrusted mail with mail-parser 3.7.0-4.6.2. When the application calls any parse_from_* entry point, convert_mail_date() raises an OverflowError or OSError outside the MailParser* exception hierarchy, which a caller catching only MailParserError does not catch, aborting the parse and losing the message. A working reproducer is published in the GHSA advisory, though it is not verified as a weaponized exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Parsing of attacker-supplied email through mail-parser 3.7.0 through 4.6.2 can be aborted entirely by a single crafted Received header whose trailing date carries an out-of-range year or an oversized timezone offset, because the resulting OverflowError/OSError escapes the MailParserError hierarchy that callers are expected to catch. The defect is an uncaught-exception condition (CWE-248) reached over the network with no authentication and no user interaction (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, 5.3); only availability is affected, and the blast radius widens to a dropped queue batch when a single worker drains messages. No public exploit code is verified; the upstream advisory supplies only a minimal reproduction snippet, and the issue is fixed in 4.6.3.
RemediationAI
Vendor-released patch: 4.6.3 (pip install --upgrade 'mail-parser>=4.6.3'), delivered via https://github.com/SpamScope/mail-parser/pull/171 (commits d69f6f9b6ad0bf74d731b373bbdeabb462c32b26 and e1d9fe6778045d6e2c44406bc8822e3464c1097f), which extends the handler in receiveds_format() to catch OverflowError and OSError and records date_utc = None for the unusable hop so the remainder of the message still parses. If upgrading is not immediately possible, the vendor's documented workaround is to wrap every parse_from_* call in a bare except Exception rather than except MailParserError and to treat the message as unparsed; the trade-off is that this also swallows unrelated unexpected errors and reduces diagnostic fidelity, so such handlers should log the caught exception and reprocess or quarantine the message rather than silently discarding it, and any queue worker should be changed so one failed message does not terminate the batch. Full details and the reproduction case are in the advisory at https://github.com/SpamScope/mail-parser/security/advisories/GHSA-xhrq-2mqv-q8wx.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
mail-parser wraps Python's standard email package and normalises message details, including Received header hop dates. In src/mailparser/utils.py, receiveds_format() converts each hop's trailing date through convert_mail_date(), which delegates to email.utils.mktime_tz() and ultimately calendar.timegm() and datetime.fromtimestamp(). A year whose epoch seconds overflow int64 makes calendar.timegm() raise OverflowError, and a sufficiently large timezone offset makes datetime.fromtimestamp() report EOVERFLOW as OSError. The guard on that path caught only TypeError and ValueError, so both exceptions propagated outside the MailParser* hierarchy and aborted the parse of the whole message through parse_from_string(), parse_from_bytes(), parse_from_file(), parse_from_file_obj() and the CLI. The root cause is classified CWE-248 (Uncaught Exception); the issue was introduced by the date-handling change ca2aa6a, first released in 3.7.0 - 3.6.0 is unaffected - and the sibling date/timezone properties already wrapped the same conversion in a bare except Exception, leaving only the Received path exposed. Note that the supplied tag 'Buffer Overflow' does not describe this defect class; the advisory's exception sweep from 10^7 to 10^12 year magnitudes found only ValueError, OverflowError and OSError reachable on this path.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
A single crafted header in untrusted mail triggers it remotely with no auth or interaction (AV:N/AC:L/PR:N/UI:N); only availability is affected via a dropped message (A:L), no C/I impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.7.0 until 4.6.3, receiveds_format() in src/mailparser/utils.py catches only TypeError and ValueError while converting the trailing date of an attacker-controlled Received header. An out-of-range year can cause calendar.timegm() to raise OverflowError, and a sufficiently large timezone offset can cause datetime.fromtimestamp() to raise OSError. These exceptions are outside the MailParserError hierarchy, so one crafted header can abort the entire message parse through every parse_from_* entry point and may drop a queued batch. This issue is fixed in version 4.6.3.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-126574
GHSA-xhrq-2mqv-q8wx
NVD
CVE.org
EPSS
Exploit-DB