Skip to main content

mail-parser CVE-2026-129295

| EUVDEUVD-2026-126570 HIGH
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-11-16 GitHub_M GHSA-r7w7-vpq8-c5vv
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Send well-formed email with space-padded headers
  2. Delivery
    Worker calls parse_from_string/bytes/file
  3. Exploit
    _ADDR_FALLBACK_RE or _CLAUSE_SPLITTER backtracks polynomially
  4. Execution
    Parser worker pinned minutes-to-hours of CPU
  5. Impact
    Mail parsing service denied

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special victim-side configuration is required - exploitation hits default behavior of mail-parser versions >= 4.2.0 and < 4.6.1: the address-header fallback (_ADDR_FALLBACK_RE in src/mailparser/utils.py) engages on the normal happy path whenever email.utils.getaddresses(strict=True) returns no usable address, and the Received-header splitter (_CLAUSE_SPLITTER in src/mailparser/const.py) is reached because pre-existing normalization collapsed only [\t\n] and let literal spaces through. The only prerequisites are that the application parses attacker-controlled email (the library's stated purpose) using an affected version, and that a crafted but RFC 5322-compliant header carries a long whitespace run (address headers or a Received header; all six address headers add up linearly). Limiting factors: the input must be parsed by a vulnerable version, impact is availability-only (no data/integrity effect), and defenders who cap total header size and enforce a per-parse wall-clock timeout before upgrading reduce exposure. The only complete fix stated by the vendor is upgrading to 4.6.1; there is no in-library workaround.

Impact

This is a genuine but moderate-priority availability issue, consistent with its vuln.today 'this_week' decision label rather than an emergency. The CVSS 7.5 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) is credible and matches the mechanism: any process that parses attacker-authored email reaches the vulnerable regexes through ordinary parse_from_string()/parse_from_bytes()/parse_from_file() calls, with no authentication, user interaction, or special configuration required - the address-fallback blowup even triggers on the feature's own happy path (e.g. 'From: alice@example.com <bob@example.com>'). The impact is strictly availability (C:N/I:N); there is no data exposure or code execution. No EPSS score and no CISA KEV status are provided in the input, and no confirmed working exploit code is listed - so there is no signal of active or widespread exploitation, only vendor-measured CPU-amplification data in the GHSA advisory. The signals are internally consistent (network-reachable, low-complexity, unauthenticated DoS against a library whose purpose is parsing untrusted mail), so the main risk-limiting factor is deployment footprint rather than any conflicting metric. Missing data to note: EPSS probability is absent, KEV status is absent (treat as not-listed), and exploitation probability cannot be quantified from the provided data.

Exploit ScenarioDerived

An attacker sends a single small, fully RFC 5322-compliant email whose From/To/Cc/Bcc/Reply-To/Delivered-To address header is padded with thousands of spaces (or a Received header padded with whitespace). When a mail gateway, ticketing system, quarantine UI, or archival worker parses it, get_addresses() falls into _ADDR_FALLBACK_RE (or parse_received() hits _CLAUSE_SPLITTER) and backtracks polynomially, pinning a CPU for seconds to hours. No PoC exploit code is published in the provided references, but the advisory supplies measured scaling tables (e.g. ~100 KB of header padding → hours of CPU), which is well within Postfix's default header_size_limit of 102400; the low attack complexity and network vector make reproduction straightforward.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 16, 2026

Polynomial regular-expression backtracking in SpamScope mail-parser 4.2.0 through 4.6.0 lets remote attackers stall mail-processing workers with a single small, well-formed message, causing availability-only denial of service. Parsing is unauthenticated by nature (CVSS PR:N/UI:N, AV:N) and the blowup is reached through ordinary parse_from_string(), parse_from_bytes() or parse_from_file() calls with no special option or malformed structure required; a crafted but RFC 5322-compliant header carrying a long whitespace run can keep a gateway, ticketing, quarantine or archival worker busy for minutes to hours. No public exploit code has been identified at time of analysis - the vendor advisory provides measured timing tables rather than weaponized payloads - and the issue is a 'this_week' priority item rather than an emergency, fixed by upgrading to 4.6.1.

RemediationAI

Upgrade to mail-parser 4.6.1, the only complete fix stated by the vendor (Vendor-released patch: 4.6.1), available from https://github.com/SpamScope/mail-parser/releases/tag/4.6.1; the change set is PR https://github.com/SpamScope/mail-parser/pull/166 with commits 037293158cb291caa96635a54449243d32cd4d96, 5aab122f0d763991604d2c2bcc807c6bf2489464 and 85e53f820d78ae7c955dafbbcd0e20989a735c2c, and full analysis is in advisory GHSA-r7w7-vpq8-c5vv. The vendor states there is no workaround inside the library; users who cannot upgrade immediately should, as the advisory advises, cap total header size before parsing - which side-effects by rejecting or truncating legitimately large or heavily folded headers and must be tuned above real-world maximums - and enforce a wall-clock timeout around each parse, which side-effects by aborting long-running parses and therefore requires handling of timed-out messages as errors rather than silently dropping them. Note that per-deployment exposure is only reduced, not eliminated, until 4.6.1 is deployed.

Affected VersionsENISA

mail-parser 4.2.0, < 4.6.1

Affected Packages

pypi mail-parser fix: 4.6.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 root cause is CWE-1333 (inefficient regular-expression complexity) in two parsing paths of the Python mail-parser library. In src/mailparser/utils.py, get_addresses() falls back to _ADDR_FALLBACK_RE whenever email.utils.getaddresses(strict=True) yields no usable address; that pattern places a lazy quantifier next to an adjacent \s* so a space matches both alternatives, and because it is driven by finditer - which retries at every offset and rescans the remainder - matching degrades to quadratic on '<' padding and cubic on whitespace padding. All six address headers the library parses (From, To, Cc, Bcc, Reply-To, Delivered-To) are affected and their cost adds up linearly. Separately, src/mailparser/const.py applies _CLAUSE_SPLITTER, (?:^|\s+)(from|by|via|with|id|for|envelope-from)\s+, to a Received header inside parse_received(); under re.split this backtracks quadratically over any whitespace run not followed by a clause keyword, and the pre-existing normalization collapsed only [\t\n], so literal spaces including folded-header padding reached the splitter intact. Fully RFC 5322-compliant folded headers (all lines ≤ 71 octets) trigger the same behavior, so input passes normal MTA and library checks, and roughly 100 KB of headers sits within Postfix's default header_size_limit. The 4.6.1 fix replaces the address fallback with a linear, quote-aware split into comma-separated items matched against a bounded angle-address pattern with a single non-nested quantifier over a negated character class, and collapses whitespace runs to a single space before the Received splitter; regression tests assert linear-time behavior for both paths. CPE cpe:2.3:a:spamscope:mail-parser:*:*:*:*:*:*:*:* identifies the affected package.

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 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Attacker-authored email reaches the parser over the network with no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is CPU-exhaustion availability only, no confidentiality or integrity effect.

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:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

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
High

Lifecycle Timeline

2
Patch available
Nov 16, 2026 - 19:02 EUVD
CVE Published
Nov 16, 2026 - 17:32 cve.org
HIGH 7.5

DescriptionCVE.org

mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_FALLBACK_RE fallback when strict address parsing yields no usable address, and overlapping quantifiers rescan padded address headers quadratically or cubically. In src/mailparser/const.py, parse_received() applies _CLAUSE_SPLITTER to uncollapsed whitespace in a Received header, causing quadratic backtracking when a whitespace run is not followed by a clause keyword. A small, well-formed message can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods. This issue is fixed in version 4.6.1.

Technical POC Analysis

CWE-1333, inefficient regular-expression complexity.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

SpamScope mail-parser versions 4.2.0 through 4.6.0 contain a high-severity denial-of-service vulnerability (CVE-2026-129295) that allows a remote, unauthenticated attacker to stall mail-processing workers by sending a single small, well-formed email. This can disrupt email gateways, ticketing systems, quarantine services, and archival pipelines, causing operational delays and potential loss of mail flow for the affected departments. Leadership should care because email is a critical business communication channel, and even a brief outage can impact productivity, customer service, and compliance obligations.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: (1) Upgrading to version 4.6.1, which resolves the issue; (2) If upgrade is not immediately possible, restrict network access to mail-processing services to trusted sources; (3) Implement input validation or timeout controls on email parsing to limit processing time; (4) Monitor mail queues for unusual delays and set up alerts for worker stalls.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
Low
specialized Python email-parsing PyPI library, limited production deployment footprint
Threat Intel
1
1 source
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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
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

Vendor StatusVendor

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