Skip to main content

eml_parser CVE-2026-44844

| EUVDEUVD-2026-31977 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-05-08 https://github.com/GOVCERT-LU/eml_parser GHSA-g47v-rwmh-r9f8
6.3
CVSS 4.0 · Vendor: https://github.com/GOVCERT-LU/eml_parser
View

Attack ChainAIDerived

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

  1. Access
    Craft 12 KB EML with 124 nested message/rfc822 parts
  2. Delivery
    Deliver directly to unvalidated email ingestion pipeline
  3. Exploit
    Parser invokes get_raw_body_text() recursively per nested part
  4. Execution
    ~120 recursion levels exhaust CPython 1000-frame stack limit
  5. Persist
    Unhandled RecursionError propagates out of decode_email_bytes()
  6. Impact
    Worker process crashes, aborting batch processing

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

The attack requires that the adversary can deliver a non-RFC-compliant EML message directly to a pipeline that calls eml_parser.EmlParser().decode_email_bytes() without prior RFC compliance filtering. The default EmlParser constructor is sufficient - no special configuration, feature flag, or authentication is required. The primary limiting factor is upstream mail server validation: standards-compliant MTAs (Postfix, Exchange, Gmail) perform structural checks that would typically reject or sanitize the deeply nested message/rfc822 structure used in the PoC, preventing it from reaching the parser in conventional email delivery flows. Deployments that are directly exposed are those processing raw email bytes from external sources without an RFC-validating MTA in the path - for example, forensic analysis tools, abuse-mailbox ingestors that accept direct SMTP or API submission, SIEM log parsers, or security research pipelines. No elevated privileges, no authentication, and no user interaction are required once the malformed EML reaches the parser.

Impact

The CVSS 4.0 base score is 6.3 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L), which incorporates AT:P (Attack Requirements: Present) to reflect the precondition that the malformed EML must actually reach the parser - a non-trivial barrier because the PoC message is not RFC-compliant and would typically be rejected by standards-compliant mail servers. EPSS at 0.02% (4th percentile) is consistent with this: exploitation requires either bypassing or directly targeting ingestion pipelines that skip upstream validation. No CISA KEV listing exists. However, a public, deterministic PoC is confirmed with exact SHA-256 and reproduction steps, meaning any adversary who identifies a vulnerable pipeline can reliably weaponize this without expertise. The real-world priority depends entirely on deployment pattern: pipelines ingesting raw email bytes (forensic tooling, SIEM ingestors, abuse-mailbox processors) carry meaningful risk, while typical MTA-fronted deployments face negligible exposure. The VA:L rating in the vendor-assigned CVSS 4.0 vector appears to underweight the impact - the crash is complete and process-terminating, not partial. The overall risk is low-to-moderate, elevated specifically for environments processing untrusted email without upstream RFC validation.

Exploit ScenarioDerived

An attacker submits a crafted 12 KB EML message containing 124 nested message/rfc822 attachments directly to an email ingestion endpoint (such as an abuse-mailbox processor or forensic analysis pipeline) that passes raw bytes to eml_parser without upstream RFC validation. Within approximately 76 milliseconds, the recursive parser exhausts CPython's stack and raises an unhandled RecursionError, crashing the worker process. A deterministic public PoC with a confirmed SHA-256 hash is available, requiring no special tools or credentials to execute.

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

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

Alert me

AnalysisAIv1 – Jul 24, 2026

Unbounded recursion in eml_parser 3.0.0 (Python, pip) allows denial of service via a crafted EML file containing approximately 120 nested message/rfc822 attachments, exhausting CPython's default stack limit and crashing the parsing worker with an unhandled RecursionError. A publicly available, deterministic proof-of-concept reproduces the crash with a 12 KB payload in under 100ms against a default-configured installation. No active exploitation has been confirmed (not in CISA KEV), and EPSS is very low at 0.02%, reflecting that non-RFC-compliant messages triggering this flaw are typically filtered by upstream mail infrastructure - but pipelines that ingest raw bytes without prior validation remain directly exposed.

RemediationAI

Upgrade eml_parser to version 3.0.1 or later, which introduces recursion depth checks to prevent unbounded stack growth. The fix is confirmed by the EUVD entry (eml_parser < 3.0.1 is vulnerable) and the GitHub advisory at https://github.com/GOVCERT-LU/eml_parser/security/advisories/GHSA-g47v-rwmh-r9f8. Install via pip install --upgrade eml_parser. As a compensating control where immediate upgrade is not possible, wrap all calls to decode_email_bytes() in a broad except (RecursionError, Exception) block to prevent worker crashes - note this silently drops the malformed message rather than raising an alert, so add logging. Alternatively, pre-filter inbound EML files using a standalone RFC compliance checker before passing them to eml_parser, which also mitigates the specific PoC payload. Raising sys.setrecursionlimit() is not recommended as a standalone fix - it only delays the crash and introduces memory pressure.

Affected VersionsENISA

eml_parser < 3.0.1

Affected Packages

pypi eml-parser fix: 3.0.1

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 affected package is eml_parser (pkg:pip/eml_parser), a Python library maintained by GOVCERT-LU for parsing EML/RFC 822 email messages. The root cause is CWE-674 (Uncontrolled Recursion): the method EmlParser.get_raw_body_text() in eml_parser/parser.py calls itself for each message/rfc822 sub-part encountered within a multipart/* body, with no depth counter, no iteration cap, and no exception guard. CPython's default sys.recursionlimit is 1000 frames; each level of message/rfc822 nesting consumes approximately 8 frames (parser logic plus stdlib _header_value_parser internals), meaning roughly 120 nesting levels exhaust the limit. The resulting RecursionError is unhandled anywhere in the call chain, propagating out of decode_email_bytes() and aborting processing of the entire message batch if the caller does not wrap the call in a broad exception handler.

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 (https://github.com/GOVCERT-LU/eml_parser) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network-reachable crafted EML requires no privileges or interaction and deterministically crashes the parsing worker, warranting A:H despite the RFC non-compliance barrier factored into AC:L.

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

Primary rating from Vendor (https://github.com/GOVCERT-LU/eml_parser).

CVSS VectorVendor: https://github.com/GOVCERT-LU/eml_parser

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
May 26, 2026 - 21:22 NVD
6.3 (MEDIUM)
CVE Published
May 08, 2026 - 23:12 cve.org
MEDIUM 6.3
CVE Published
May 08, 2026 - 23:12 nvd
MEDIUM

DescriptionCVE.org

Summary

EmlParser.get_raw_body_text() recurses unconditionally for every nested message/rfc822 attachment without any depth limit. An attacker who can supply a badly crafted EML file with approximately 120 nested message/rfc822 parts triggers an unhandled RecursionError and aborts parsing of the message. A 12 KB EML file is enough to crash a worker. Though this causes the parser to crash, it is an unlikely scenario as the suggested EML that crashes the parser would not pass basic RFC compliance tests.

Details

The vulnerable function is EmlParser.get_raw_body_text() in eml_parser/parser.py. For every part of type multipart/*, the function iterates over its sub-parts; for every sub-part of type message/rfc822, it calls itself recursively on the inner message:

There is no depth parameter and no early-abort. CPython's default sys.recursionlimit is 1000. Each level of message/rfc822 nesting adds approximately 8 frames to the stack (parser code + stdlib _header_value_parser calls), so roughly 120 nested levels exhaust the limit.

The RecursionError is not caught anywhere along the call chain, so it propagates out of decode_email_bytes() and aborts processing of the entire message.

PoC

Environment: Python 3.12.3, eml_parser 3.0.0 (pip install eml_parser==3.0.0), default sys.recursionlimit=1000, Ubuntu 24.04 aarch64. No special configuration of EmlParser, default constructor.

Self-contained reproducer that builds the PoC and triggers the crash:

python
import eml_parser

def build_poc(depth=124):
    inner = b"From: a@a\r\nTo: b@b\r\nContent-Type: text/plain\r\n\r\n.\r\n"
    msg = inner
    for i in range(depth):
        b = f"B{i}".encode()
        msg = (
            b'Content-Type: multipart/mixed; boundary="' + b + b'"\r\n\r\n'
            b'--' + b + b'\r\nContent-Type: message/rfc822\r\n\r\n'
        ) + msg + b'\r\n--' + b + b'--\r\n'
    return msg

ep = eml_parser.EmlParser()
ep.decode_email_bytes(build_poc())
# RecursionError after ~76 ms on Apple Silicon (Ubuntu 24.04 aarch64).

Note that the suggested code does not produce an RFC compliant message. Resulting EML payload size: 12,369 bytes. SHA-256 of generated PoC: 00f15f635e21b4144967c2893b37425e6a6bd7b4185c557e5c7e904e1e6d18e8

The crash is deterministic on a stock install. No network, no special headers, no large attachments.

Impact

Denial of service of any pipeline that processes attacker-supplied EML files using eml_parser.

A single 12 KB email is enough to crash a worker. If the worker is a long-running process triaging multiple emails, the unhandled exception aborts processing of the whole batch unless the caller wraps the call in a broad try/except. Even then, attacker-supplied volume can keep workers in a perpetual restart loop.

The vulnerability is exploitable pre-authentication in any deployment that ingests emails from external senders which have not been subject to any kind of basic validation. Considering that email messages pass through a mail-server which does some kind of validation, messages as produced by the *build_poc* function would not reach eml_parser. Nonetheless recursion depth checks have been implemented to handle the described issue.

Reporter

Sebastián Alba Vives (@Sebasteuo) Independent security researcher, Senior AppSec Consultant LinkedIn: https://www.linkedin.com/in/sebastian-alba Email: sebasjosue84@gmail.com PGP: 0D1A E4C2 CFC8 894F 19EA DA24 45CD CA33 2CF8 31F4

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Prevalence
Low
niche Python email parsing library, limited production footprint
Threat Intel
1
1 sources
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.0%
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

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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