Skip to main content

eml_parser EUVDEUVD-2026-126577

| CVE-2026-129307 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-11-16 GitHub_M GHSA-m4g8-47f9-h588
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send email with crafted Received header
  2. Delivery
    Deliver to eml_parser-backed service
  3. Exploit
    Parser builds unmatchable greedy regex
  4. Execution
    Catastrophic O(n^4) regex backtracking
  5. Impact
    CPU-pinned worker and queue backlog

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

No special configuration is required: any application that passes an attacker-supplied email to eml_parser 3.0.3 or earlier via decode_email, decode_email_bytes, or parse_email is exposed, because every Received header is processed through parserouting() and the custom policy sets max_line_length=0 so the header is not size-capped (unlike body text, which is sliced to ~600 chars). The attacker needs no authentication and no user interaction, and the behavior cannot be disabled through any EmlParser option. The concrete trigger is a Received header containing multiple 'from/by/with/for' routing segments followed by a date tail whose formatting (e.g. an unbalanced '(') differs between the normalized copy and the original line, making the compiled trailing date literal unmatchable. Limiting factors: impact is availability only (no code execution, data exposure, or corruption); the target application must actually ingest untrusted email, and per-message CPU timeouts can cap a single message's damage, though sustained low-volume sending still exhausts workers.

Impact

This is a genuine but moderate-priority availability issue, correctly rated CVSS 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L): network-reachable, no privileges, no user interaction, deterministic trigger, and availability-only impact with no confidentiality or integrity exposure (CWE-407/CWE-1333 algorithmic-complexity DoS). The signals are internally consistent - a low-severity, availability-only flaw with no scope change - and the vuln.today decision label is 'this_month' rather than act_now/emergency, matching a patch-on-normal-cycle urgency. It is NOT on CISA KEV, so there is no confirmed active exploitation, and no EPSS probability was supplied in the input, so widespread-exploitation likelihood cannot be quantified from available data. The GHSA advisory includes a complete, working proof-of-concept with measured timings (a ~5.9 KB email pins one CPU core ~12s; ~13 KB ~5 minutes; ~25 KB effectively hangs the worker), which materially raises practical exploitability for any service parsing untrusted mail, but PoC availability is distinct from active exploitation. The realistic concern is amplification: the Received-header path is unsliced (unlike body text) and cannot be disabled via any EmlParser option, so a steady trickle of small messages can keep workers permanently busy even behind per-message timeouts. Net: a real but low-to-moderate priority for mail gateways, phishing/forensics pipelines, and ticketing systems that feed untrusted email into eml_parser; higher-CVSS products should generally be patched first, but this should be remediated on a normal maintenance cycle.

Exploit ScenarioDerived

An attacker sends a single small (~6 KB) email whose Received header contains dozens of 'from/by/with/for' segments plus a date tail with an unbalanced parenthesis (e.g. '+0000(comment'); when the application calls decode_email_bytes/decode_email/parse_email, parserouting() builds a four-group greedy regex whose trailing date literal can never match, forcing O(n^4) backtracking that pins a CPU core for ~12 seconds with no crash or exception. A complete working PoC with measured timings is published in the GHSA advisory, and because exploitation is network-based, low-complexity, and unauthenticated (AV:N/AC:L/PR:N/UI:N), a sustained trickle of such messages can keep all parser workers busy and build an unbounded queue backlog.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 16, 2026

Algorithmic-complexity denial of service in eml_parser through 3.0.3 allows an unauthenticated email sender to pin a parser worker by sending one small crafted message: a Received header containing several from/by/with/for routing segments plus a date tail whose formatting differs between the normalized copy and the original line makes the dynamically generated regex unmatchable, triggering exhaustive backtracking that grows roughly as the fourth power of header length (about 12 seconds of CPU for a ~5.9 KB header, minutes for ~13 KB). The unsliced Received-header path is reached by decode_email, decode_email_bytes and parse_email, and cannot be disabled through any EmlParser option, so mail gateways, phishing-analysis and forensics pipelines processing untrusted mail can be pushed into queue backlog. Impact is availability only with no confidentiality or integrity exposure (CVSS 5.3, CWE-407/CWE-1333); the issue is not listed in CISA KEV, and a public proof-of-concept reproducer accompanies the vendor's GitHub advisory as a DoS trigger rather than code-execution exploit code.

RemediationAI

Vendor-released patch: upgrade eml_parser to 3.0.4 or later, which removes the static npdate literal in favour of non-greedy capture groups terminated by ';' or end-of-line and replaces the ordering matrix with a single-pass str.find(), reducing the parse from O(n^4) to O(n). The fix is available from the release tag https://github.com/GOVCERT-LU/eml_parser/releases/tag/v3.0.4 and the source commit https://github.com/GOVCERT-LU/eml_parser/commit/54ea6e9f54fecda3059283ccdb6a6fd99e7ce92f, with details in the advisory https://github.com/GOVCERT-LU/eml_parser/security/advisories/GHSA-m4g8-47f9-h588. No EmlParser option disables the vulnerable code path and upgrading is the only complete fix; the vendor documents no other mitigation. Where upgrading must be staged, the practical compensating controls are to truncate or reject Received headers over a small length threshold before they reach EmlParser (trade-off: truncated or dropped routing information, and hand-built headers may no longer parse cleanly), to enforce a hard per-message CPU/wall-clock timeout in the calling service (trade-off: it caps a single message's damage but sustained low-volume sending still consumes workers, so combined rate limiting per sender is needed), and to run parsing workers in an isolated pool sized for graceful degradation so pinned workers do not exhaust the host (trade-off: added infrastructure overhead and slower throughput during an attack). Because the affected path processes every Received header without a size cap, sources of untrusted email should be reviewed to ensure this workload is not co-located with latency-sensitive services.

Affected VersionsENISA

eml_parser < 3.0.4

Affected Packages

pypi eml-parser fix: 3.0.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is an inefficient regular-expression construction in eml_parser.routing.parserouting() (eml_parser/routing.py:140-148 in v3.0.3), the CWE-407 algorithmic-complexity class combined with CWE-1333 regex backtracking. parserouting() builds a pattern from up to four greedy '.*' capture groups (from (?P<from>.*)by (?P<by>.*)with (?P<with>.*)for (?P<for>.*)) and appends the date literal (npdate) extracted from a normalized copy of the Received header, escaped so it is matched as a literal. The normalization performed earlier in the same file adds spacing around '(', ')' and ';', removes parenthesized text and collapses whitespace, so npdate is not guaranteed to be a substring of the original line; when the trailing literal is unmatchable (for example an unbalanced '(' such as '+0000(comment'), the engine only discards each start position after exhaustively backtracking the four nested greedy groups, giving O(n^4) behavior. The data flow is fully attacker-controlled and unbounded: the Received header is lowercased and whitespace-flattened at parser.py:352-355 with no size cap because the custom policy sets max_line_length=0, unlike body text which is sliced to roughly 600 characters, and every Received header in the message is processed, multiplying the cost. Profiling attributes about 83% of wall time to re.Pattern.search called from parserouting(); the parse completes normally with no exception, so the effect is pure CPU exhaustion rather than a crash, corruption or information leak. The upstream fix removes the static npdate suffix in favour of non-greedy capture groups terminated lazily at a ';' or end-of-line anchor and replaces the ordering matrix with a single-pass str.find(), reducing complexity from O(n^4) to O(n).

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Deterministic single-message trigger over the network with no auth or interaction gives AV:N/AC:L/PR:N/UI:N; impact is availability-only worker exhaustion (A:L), no C/I impact and no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Nov 16, 2026 - 19:02 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
niche Python email-parsing library for mail-security and forensics pipelines
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy