CVE-2026-129307
Medium 5.3No known exploitationFix availableeml_parser: Algorithmic-complexity DoS (O(n^4) regex backtracking) in Received-header parsing
Vendor advisory: GHSA-m4g8-47f9-h588
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 22% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
eml_parser serves as a python module for parsing eml files and returning various information found in the e-mail as well as computed information. In 3.0.3 and earlier, eml_parser.routing.parserouting() in eml_parser/routing.py builds a regular expression with multiple greedy capture groups and appends the npdate date literal extracted from a normalized copy of an attacker-controlled Received header, then searches that expression against the original unnormalized line. A formatting difference can make the trailing literal impossible to match, causing exhaustive backtracking across the greedy groups at each start position. The unsliced Received-header path is invoked by decode_email, decode_email_bytes, and parse_email, so one small unauthenticated message can pin a parser worker and create sustained queue backlog. This issue is fixed in version 3.0.4.
Weakness: CWE-407, CWE-1333
Patching and mitigation
- Patch status
- Fix available (source: Microsoft MSRC)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- msrc.microsoft.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl3 perl-XML-Parser 2.47-2 on Azure Linux 3.0 | Not documented | Not documented | Microsoft MSRC |
| Microsoft | azl4 perl-XML-Parser 2.57-5.azl4 on Azure Linux 4.0 | Not documented | Not documented | Microsoft MSRC |
| pip | eml-parser | all versions up to and including 3.0.3 | 3.0.4 | GitHub Advisory Database |
Timeline
Advisory
Microsoft advisory published
Advisory change
Microsoft advisory revised (2.0): Information published.
Advisory change
Microsoft advisory revised (3.0): Information published.
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- https://github.com/GOVCERT-LU/eml_parser/commit/54ea6e9f54fecda3059283ccdb6a6fd99e7ce92f (opens in a new tab)
- https://github.com/GOVCERT-LU/eml_parser/releases/tag/v3.0.4 (opens in a new tab)
- https://github.com/GOVCERT-LU/eml_parser/security/advisories/GHSA-m4g8-47f9-h588 (opens in a new tab)
- GitHub Advisory GHSA-m4g8-47f9-h588 (opens in a new tab)github-advisory