nday
CVE-2026-129300 GHSA-xhrq-2mqv-q8wx

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

SpamScope / mail-parser

Patched on the day of disclosure. Patched: fixed in mail-parser 4.6.3. None of the four PoC sources lists it. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (CVSS 3.1) from the CNA GitHub_M
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (CVSS 3.1) from the CNA GitHub_M
no authentication required
PR:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (CVSS 3.1) from the CNA GitHub_M
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (CVSS 3.1) from the CNA GitHub_M
PyPI
GHSA-xhrq-2mqv-q8wx: pip packages mail-parser
stage
PAT
disclosed
disclosure → patch
T+0d
cvss
5.3 MEDIUM v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
11-16T17:45Z
PATpatch
11-16T23:03Z
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

CVSS 3.1 vector from the CVE record, scored by the CNA GitHub_M.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 5.3, medium.

src cvelist · nday , observed live · raw
{
  "id": 473211,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-129300",
  "occurred_at": "2026-11-16T17:45:18.252Z",
  "observed_at": "2026-11-16T18:00:20.470886Z",
  "is_backfill": false,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "version": "3.1",
      "base_score": 5.3,
      "base_severity": "MEDIUM"
    },
    "ssvc": {
      "timestamp": "2026-11-17T22:07:03.938972Z",
      "automatable": "yes",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-16T17:45:18.252Z",
    "assigner_short_name": "GitHub_M"
  }
}
no source time; observed live by nday
+PATpatch released

The advisory gives fixed version mail-parser 4.6.3. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-xhrq-2mqv-q8wx · nday , observed live · raw
{
  "id": 475796,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-xhrq-2mqv-q8wx",
  "occurred_at": null,
  "observed_at": "2026-11-16T23:03:12.59201Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-xhrq-2mqv-q8wx",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 5.3,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Uncaught Exception",
        "cwe_id": "CWE-248"
      }
    ],
    "ghsa_id": "GHSA-xhrq-2mqv-q8wx",
    "packages": [
      {
        "name": "mail-parser",
        "ecosystem": "pip",
        "first_patched_version": "4.6.3",
        "vulnerable_version_range": ">= 3.7.0, < 4.6.3"
      }
    ],
    "severity": "medium",
    "references": [
      "https://github.com/SpamScope/mail-parser/security/advisories/GHSA-xhrq-2mqv-q8wx",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-129300",
      "https://github.com/SpamScope/mail-parser/pull/171",
      "https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26",
      "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f",
      "https://github.com/SpamScope/mail-parser/releases/tag/4.6.3",
      "https://github.com/advisories/GHSA-xhrq-2mqv-q8wx"
    ],
    "fix_commit_urls": [
      "https://github.com/SpamScope/mail-parser/pull/171",
      "https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26",
      "https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"
    ],
    "github_reviewed_at": "2026-11-16T22:20:32Z",
    "advisory_updated_at": "2026-11-16T22:20:33Z",
    "source_code_location": "https://github.com/SpamScope/mail-parser",
    "advisory_published_at": "2026-11-16T22:20:32Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.