CVE-2026-129300
MEDIUM 5.3CVSS 3.1mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date
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.
- Published
- 16 Nov 2026
- Last modified
- 17 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-248
- Also known as
- GHSA-xhrq-2mqv-q8wx
- Sources
- NVDJSONOSV GHSA-xhrq-2mqv-q8wxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | mail-parser | >= 3.7.0, < 4.6.3 | 4.6.3 |
References
- https://github.com/SpamScope/mail-parser/commit/d69f6f9b6ad0bf74d731b373bbdeabb462c32b26 · WEB
- https://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097f · WEB
- https://github.com/SpamScope/mail-parser/pull/171 · WEB
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.3 · WEB
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-xhrq-2mqv-q8wx · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-129300 · ADVISORY
- https://github.com/SpamScope/mail-parser · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 16 Nov 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Nov 2026)