PT-2026-148357

CVE-2026-129295

·

Published

2026-11-16

·

Updated

2026-11-16

Description by

CVSS 3.1
7.5
High
MetricsAV: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:
  1. In src/mailparser/utils.py, the get addresses() function uses a fallback regular expression ADDR FALLBACK RE that overlaps a lazy quantifier with an adjacent s*, resulting in quadratic or cubic matching degradation when processing padded address headers.
  2. In src/mailparser/const.py, the parse received() function uses the CLAUSE SPLITTER regular 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
Researchers
Vendors
Affected products
Related identifiers
GHSA-R7W7-VPQ8-C5VV
Found an issue in the description? Have something to add? Feel free to write us 👾