Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-107572 Overview
CVE-2026-107572 is an algorithmic complexity vulnerability in Progressive Robot hMailServer versions 6.2.24 through 6.3.5. The flaw resides in the Sieve filter evaluation engine, where authenticated account holders can author filter scripts that trigger catastrophic processing times. Two issues contribute: a backtracking :matches pattern evaluator whose runtime scales with input length raised to the wildcard count, and a deleteheader action that removes repeated fields with O(N^2) cost. Because Sieve filters execute on the shared delivery thread pool, an authenticated user can exhaust the pool by sending themselves crafted messages. This halts mail delivery for the entire server, affecting all tenants on the host.
Critical Impact
An authenticated mailbox user can stop mail delivery server-wide by installing a crafted Sieve filter and sending themselves a small number of messages.
Affected Products
- Progressive Robot hMailServer 6.2.24 through 6.3.5
- hMailServer Sieve filter evaluation subsystem
- Shared delivery thread pool used by all mailboxes on the host
Discovery Timeline
- 2026-10-08 - CVE CVE-2026-107572 published to NVD
- 2026-10-08 - Last updated in NVD database
Technical Details for CVE-2026-107572
Vulnerability Analysis
The vulnerability is a textbook algorithmic complexity issue classified under [CWE-1333] (Inefficient Regular Expression Complexity). Sieve is a mail filtering language that lets account holders define rules executed by the mail server during message delivery. In hMailServer, these filters run on a small, shared delivery thread pool rather than on per-user workers.
Two distinct code paths amplify input into disproportionate CPU time. The :matches operator implements wildcard matching using recursive backtracking, so runtime grows polynomially with input length and exponentially with the number of wildcards. A pattern such as *a*a*a*b applied to an 800-character header value takes approximately 44 seconds to evaluate.
The second issue is in the deleteheader action. When removing multiple header fields of the same name, each deletion walks the full header list, producing O(N^2) behavior. Removing 80,000 fields takes roughly 18.8 seconds. Because an attacker controls message content they send to themselves, they can inflate header counts arbitrarily.
Root Cause
The root cause is twofold. First, the :matches evaluator uses naive backtracking without memoization or bounded recursion limits. Second, deleteheader performs linear scans per removal instead of a single pass. Combined with execution on a shared thread pool with no per-tenant time budget, these defects turn user-authored scripts into a server-wide availability weapon.
Attack Vector
Exploitation requires authenticated access to a single mailbox. The attacker installs a malicious Sieve script on their own account using the pathological :matches pattern or a bulk deleteheader rule. They then send themselves a few messages crafted to trigger worst-case processing, for example messages with inflated header fields or long matching values. The delivery threads block on filter evaluation and the shared pool drains, stopping delivery for every account on the server. The script cannot target other users' mailboxes, but it does not need to; the shared-resource exhaustion propagates automatically.
Technical details and the fix are described in GitLab hMailServer Work Item #75.
Detection Methods for CVE-2026-107572
Indicators of Compromise
- Sustained delivery thread pool saturation with mail queue growth and delivery latency rising for all mailboxes.
- Sieve scripts containing :matches patterns with multiple wildcards against long header or body values.
- Sieve scripts invoking deleteheader without the :index or count modifiers against repeated headers.
- Inbound or self-sent messages with abnormally large or repeated header fields.
Detection Strategies
- Audit all stored Sieve scripts for :matches patterns containing three or more wildcards and for unbounded deleteheader usage.
- Instrument the delivery pipeline to log per-script evaluation time and flag scripts exceeding a threshold such as five seconds.
- Monitor message header field counts at the MTA edge and alert when a single message carries thousands of repeated headers.
Monitoring Recommendations
- Track delivery thread pool utilization and queue depth as leading indicators of filter-induced exhaustion.
- Correlate authentication logs with Sieve script modifications to identify the account that introduced a problematic rule.
- Alert on repeated self-addressed messages from a single account combined with rising delivery latency.
How to Mitigate CVE-2026-107572
Immediate Actions Required
- Upgrade hMailServer to version 6.3.6 or later, which addresses both the :matches backtracking and deleteheader complexity issues.
- Inventory and review user-authored Sieve scripts and quarantine any containing pathological wildcard patterns or bulk header deletions.
- Restrict new Sieve script uploads until the server is patched if immediate upgrade is not possible.
Patch Information
The vendor released the fix in hMailServer 6.3.6. See the GitLab hMailServer Release v6.3.6 notes and the corresponding GitLab hMailServer Work Item #75 for implementation details.
Workarounds
- Disable Sieve filtering for untrusted accounts until the server is upgraded.
- Enforce a maximum header count and total header size at the MTA to blunt the deleteheader amplification.
- Add a per-script evaluation timeout at the delivery layer to prevent any single filter from monopolizing the thread pool.
- Isolate the delivery thread pool by tenant where supported to limit blast radius.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

