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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-11-16T17:45:18.252Z
- Modified: 2026-11-17T23:17:51.360Z
- Also known as: GHSA-xhrq-2mqv-q8wx
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- SpamScope mail-parser: >= 3.7.0, < 4.6.3
- mail-parser (PyPI): from 3.7.0 before 4.6.3

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/SpamScope/mail-parser/security/advisories/GHSA-xhrq-2mqv-q8wx> (web)
- <https://github.com/SpamScope/mail-parser/pull/171> (web)
- <https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26> (web)
- <https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f> (web)
- <https://github.com/SpamScope/mail-parser/releases/tag/4.6.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129300> (advisory)
- <https://github.com/SpamScope/mail-parser> (package)

## Sources

- CVE List: [CVE-2026-129300](https://www.cve.org/CVERecord?id=CVE-2026-129300), CVE Terms of Use, modified 2026-11-17
- GitHub Advisory Database: [GHSA-xhrq-2mqv-q8wx](https://github.com/advisories/GHSA-xhrq-2mqv-q8wx), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-129300](https://nvd.nist.gov/vuln/detail/CVE-2026-129300), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-129300 · Whole record: https://cve.day/CVE-2026-129300.json · Rebuilt by cve.day 2026-11-25T22:59:50.908Z
