PT-2026-148357
CVE-2026-129295
·
Published
2026-11-16
·
Updated
2026-11-16
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
mail-parser versions 4.2.0 through 4.6.0
Description
Two regular expressions used for parsing email headers can cause polynomial regular-expression backtracking when processing attacker-controlled input. This occurs during calls to
parse from string(), parse from bytes(), or parse from file(), potentially consuming excessive CPU resources and leading to a denial of service for mail gateways, ticketing systems, quarantine UIs, or archiving pipelines.The issue manifests in two areas:
- In
src/mailparser/utils.py, theget addresses()function uses a fallback regular expressionADDR FALLBACK REthat overlaps a lazy quantifier with an adjacents*, resulting in quadratic or cubic matching degradation when processing padded address headers. - In
src/mailparser/const.py, theparse received()function uses theCLAUSE SPLITTERregular expression, which backtracks quadratically over whitespace runs that are not followed by a clause keyword.
Recommendations
Update mail-parser to version 4.6.1.
As a temporary mitigation, cap the total header size before parsing and enforce a wall-clock timeout around each parse operation.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾