Skip to content

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

MediumCVSS 5.3 EPSS 0.40%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
DebianRed Hat

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.

Upgrade path

6 packages: 1 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat lightspeed_core) All versions No fix listed No fix yet
redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat lightspeed_core) All versions No fix listed No fix yet
redhat/rhoai/odh-autorag-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-ogx-core-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
pypi mail-parser(PyPI) = 3.7.0; = 3.7.1; = 3.8.0; = 3.8.1 +24 more 4.6.3 Fixed
SpamScope mail-parser = >= 3.7.0, < 4.6.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi mail-parser(PyPI) >= 3.7.0, < 4.6.3 4.6.3
pypi mail-parser(PyPI) = 3.10.0 No fix listed
pypi mail-parser(PyPI) = 3.11.0 No fix listed
pypi mail-parser(PyPI) = 3.12.0 No fix listed
pypi mail-parser(PyPI) = 3.13.0 No fix listed
pypi mail-parser(PyPI) = 3.14.0 No fix listed
pypi mail-parser(PyPI) = 3.15.0 No fix listed
pypi mail-parser(PyPI) = 3.7.0 No fix listed
pypi mail-parser(PyPI) = 3.7.1 No fix listed
pypi mail-parser(PyPI) = 3.8.0 No fix listed
pypi mail-parser(PyPI) = 3.8.1 No fix listed
pypi mail-parser(PyPI) = 3.9.0 No fix listed
pypi mail-parser(PyPI) = 3.9.1 No fix listed
pypi mail-parser(PyPI) = 3.9.2 No fix listed
pypi mail-parser(PyPI) = 3.9.3 No fix listed
pypi mail-parser(PyPI) = 4.0.0 No fix listed
pypi mail-parser(PyPI) = 4.1.0 No fix listed
pypi mail-parser(PyPI) = 4.1.2 No fix listed
pypi mail-parser(PyPI) = 4.1.3 No fix listed
pypi mail-parser(PyPI) = 4.1.4 No fix listed
pypi mail-parser(PyPI) = 4.2.0 No fix listed
pypi mail-parser(PyPI) = 4.2.1 No fix listed
pypi mail-parser(PyPI) = 4.3.0 No fix listed
pypi mail-parser(PyPI) = 4.4.0 No fix listed
pypi mail-parser(PyPI) = 4.5.0 No fix listed
Show 8 more
ProductAffected versionsFixed in
pypi mail-parser(PyPI) = 4.6.0 No fix listed
pypi mail-parser(PyPI) = 4.6.1 No fix listed
pypi mail-parser(PyPI) = 4.6.2 No fix listed
SpamScope mail-parser = >= 3.7.0, < 4.6.3 No fix listed
redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat:lightspeed_core) All versions No fix listed
redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat:lightspeed_core) All versions No fix listed
redhat/rhoai/odh-autorag-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-ogx-core-rhel9(Red Hat:openshift_ai) All versions No fix listed

References