Skip to main content

mail-parser CVE-2026-129300

| EUVDEUVD-2026-126574 MEDIUM
Uncaught Exception (CWE-248)
2026-11-16 GitHub_M GHSA-xhrq-2mqv-q8wx
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send email with crafted Received header
  2. Delivery
    Parser converts out-of-range date via calendar.timegm()
  3. Exploit
    OverflowError/OSError raised outside MailParser* hierarchy
  4. Execution
    Uncaught exception aborts entire message parse
  5. Impact
    Queued 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mail-parser 3.7.0, < 4.6.3

Affected Packages

pypi mail-parser fix: 4.6.3

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

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Nov 16, 2026 - 19:02 EUVD

DescriptionCVE.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

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche open-source Python email-parsing library, limited production footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy