CVE-2026-129307
Deferred Deferred - Pending Action

eml_parser Regular Expression Denial of Service via Received Header

Vulnerability report for CVE-2026-129307, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-16

Last updated on: 2026-11-16

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-16
Last Modified
2026-11-16
Generated
2026-11-16
AI Q&A
2026-11-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1333 The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
CWE-407 An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a denial-of-service vulnerability in the eml_parser module where a maliciously crafted email header causes excessive CPU usage. The parser builds a regex with greedy groups and tries to match an attacker-controlled date literal against an unnormalized header line. A formatting difference prevents the match, triggering exhaustive backtracking that consumes system resources.

Detection Guidance

Detecting this vulnerability requires checking the version of eml_parser installed on your system. Use the command: pip show eml_parser. If the version is 3.0.3 or earlier, the system is vulnerable.

Impact Analysis

An attacker could send a single malicious email to a server using this library, causing the parser to hang and consume excessive CPU. This may lead to service slowdowns, crashes, or denial of service for email processing systems relying on eml_parser versions 3.0.3 or earlier.

Mitigation Strategies

Upgrade eml_parser to version 3.0.4 or later immediately. Use the command: pip install --upgrade eml_parser. If upgrading is not possible, consider disabling email parsing for untrusted sources or implementing rate limiting on email processing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129307. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...