CVE-2026-129300

mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date

Published Nov 16, 2026 CVSS 3.1 · 5.3 Medium EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

mail-parser fails to catch an unexpected OverflowError or OSError when an attacker supplies a Received header with an out‑of‑range year or an excessive timezone offset. Those unhandled exceptions propagate out of the parsing logic, terminating the entire parse process and potentially discarding queued messages. The vulnerability therefore provides a denial‑of‑service impact for any system that relies on mail-parser to process incoming mail.

Affected Systems

The SpamScope mail-parser package, versions 3.7.0 up through 4.6.2 inclusive, is affected. The issue is resolved in release 4.6.3 and later.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and the EPSS score is not available. The vulnerability is not listed in CISA’s KEV catalog. An attacker can trigger the flaw by crafting a Received header in an email that is received by an application that uses mail-parser; the malformed header causes an uncaught exception that aborts the parsing routine and may drop a batch of messages. The vulnerability can be triggered remotely through network traffic containing the malicious header, or locally by supplying a header to the parsing function. The exploit requires only a crafted email and does not rely on additional system privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to mail-parser 4.6.3 or later.
  • Ensure all applications that import mail-parser use the updated library.
  • Wrap calls to mail-parser in a generic exception handler that logs and safely continues processing instead of terminating the drop queue.

Generated by OpenCVE AI on November 16, 2026 at 19:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date
Weaknesses CWE-248
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 16, 2026, 5:45 PM
Reserved
Nov 13, 2026, 10:30 PM
Status
Received
Published
Nov 16, 2026, 6:17 PM
Modified
Nov 16, 2026, 6:17 PM