Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend email with crafted Received header
-
DeliveryDeliver to eml_parser-backed service
-
ExploitParser builds unmatchable greedy regex
-
ExecutionCatastrophic O(n^4) regex backtracking
-
ImpactCPU-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-126577
GHSA-m4g8-47f9-h588
NVD
CVE.org
EPSS
VulDB
Exploit-DB