CVE-2026-129300
Received Received - Intake

mail-parser Remote Code Execution via Malformed Received Header

Vulnerability report for CVE-2026-129300, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-16

Last updated on: 2026-11-16

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-16
Last Modified
2026-11-16
Generated
2026-11-16
AI Q&A
2026-11-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-248 An exception is thrown from a function, but it is not caught.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From versions 3.7.0 to 4.6.3, the receiveds_format() function in src/mailparser/utils.py only catches TypeError and ValueError when converting the trailing date of an attacker-controlled Received header. An out-of-range year can cause calendar.timegm() to raise OverflowError, and a large timezone offset can cause datetime.fromtimestamp() to raise OSError. These exceptions are not handled, allowing a crafted header to abort the entire message parse and potentially drop a queued batch.

Detection Guidance

This vulnerability can be detected by checking the version of mail-parser installed on your system. If the version is between 3.7.0 and 4.6.2, the system is vulnerable. Run the command: pip show mail-parser to check the installed version.

Impact Analysis

This vulnerability allows an attacker to craft a malicious email with a specially formatted Received header. When parsed, this can cause the mail-parser tool to crash, fail to process the email, or drop entire batches of queued emails. This could lead to missed or lost emails, disrupting communication and workflows that rely on the mail-parser tool.

Mitigation Strategies

Immediately upgrade mail-parser to version 4.6.3 or later. Use the command: pip install --upgrade mail-parser==4.6.3. This fixes the issue by properly handling exceptions in receiveds_format().

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129300. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...