{"id":"CVE-2026-129300","published":"2026-11-16T17:45:18Z","modified":"2026-11-17T22:27:27Z","title":"mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date","vendor":"SpamScope","product":"mail-parser","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00396,"percentile":0.3473,"provenance":"source"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/SpamScope/mail-parser/security/advisories/GHSA-xhrq-2mqv-q8wx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/SpamScope/mail-parser/pull/171","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpamScope/mail-parser/releases/tag/4.6.3","tags":["x_refsource_MISC"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":6.95},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"spamscope","affectedVersions":[{"vendor":"SpamScope","product":"mail-parser","versions":[">= 3.7.0, < 4.6.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-17T22:07:03.938972Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mail-parser","vulnerableRanges":[">=3.7.0, <4.6.3"],"patched":["4.6.3"],"from":["GHSA-xhrq-2mqv-q8wx"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-126574","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spamscope-mail-parser-cve-2026-129295","parents":[{"from":"CVE-2026-129297","to":"CVE-2026-129300","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mail-parser","fromFixed":"4.6.2","toFixed":"4.6.3","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96","https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26","https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"],"basis":"shared function","functions":["parse"]}]},{"from":"CVE-2026-129295","to":"CVE-2026-129300","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/exceptions.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96","https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464","https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26","https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"],"basis":"rarely changed file"}]},{"from":"CVE-2026-129296","to":"CVE-2026-129300","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8","https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d","https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26","https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"],"basis":"shared function","functions":["parse","print_attachments","write_sample"]}]},{"from":"CVE-2026-129299","to":"CVE-2026-129300","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/mailparser/core.py","src/mailparser/utils.py"],"commits":["https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96","https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26","https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f"],"basis":"shared function","functions":["parse"]}]}],"packageHistory":[{"cve":"CVE-2026-129295","published":"2026-11-16","fixed":"4.6.1","kev":false},{"cve":"CVE-2026-129297","published":"2026-11-16","fixed":"4.6.2","kev":false},{"cve":"CVE-2026-129299","published":"2026-11-16","fixed":"4.6.2","kev":false},{"cve":"CVE-2026-129300","published":"2026-11-16","fixed":"4.6.3","kev":false},{"cve":"CVE-2026-129301","published":"2026-11-16","fixed":"4.6.3","kev":false}],"package":"PyPI:mail-parser"}}