Skip to main content
Vulnerability Database/CVE-2026-107575

CVE-2026-107575: hMailServer SPF Macro DoS Vulnerability

CVE-2026-107575 is a denial of service vulnerability in Progressive Robot hMailServer 6.3.4 and 6.3.5 caused by inefficient SPF macro expansion. Attackers can exploit crafted SPF records to consume server resources. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

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-107575 Overview

CVE-2026-107575 is an algorithmic complexity vulnerability in the Sender Policy Framework (SPF) macro expansion logic of Progressive Robot hMailServer versions 6.3.4 and 6.3.5. A remote unauthenticated attacker can consume worker-thread time by publishing a crafted SPF record for a domain they control. When the mail server evaluates an SPF check against a message from that domain, the macro expansion routine processes labels in quadratic time, causing each SPF evaluation to take several seconds. The flaw is tracked under [CWE-407: Inefficient Algorithmic Complexity].

Critical Impact

Remote unauthenticated attackers can degrade mail server availability by forcing SPF checks to consume disproportionate worker-thread time per message.

Affected Products

  • Progressive Robot hMailServer 6.3.4
  • Progressive Robot hMailServer 6.3.5
  • Fixed in hMailServer 6.3.6

Discovery Timeline

  • 2026-10-08 - CVE-2026-107575 published to the National Vulnerability Database (NVD)
  • 2026-10-08 - Last updated in NVD database

Technical Details for CVE-2026-107575

Vulnerability Analysis

The vulnerability resides in hMailServer's implementation of SPF macro expansion as defined by RFC 7208. Section 7.1 of that specification requires that when an expanded name exceeds the DNS 253-character limit, whole labels must be removed from the left until the name fits.

hMailServer implemented this truncation by removing one label at a time and copying the remainder of the name on each iteration. The resulting work grows with the square of the expansion length. An attacker publishes an SPF record for a domain they control that contains a mechanism whose domain-spec expands through macros to a name far longer than 253 characters. Each SPF check against a message from that domain then triggers the quadratic truncation loop and occupies a worker thread for several seconds.

The loss of availability is partial because SPF's own per-term and per-macro limits bound the maximum expansion. However, repeated or concurrent inbound messages referencing attacker-controlled domains amplify the resource consumption across the mail service's worker pool.

Root Cause

The root cause is an inefficient string manipulation algorithm in the SPF label-truncation routine. Instead of truncating in place or operating on label pointers, the code allocates and copies the suffix on every label removal. This converts an operation that should be linear in the number of labels into one that is quadratic in the length of the expanded name.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker configures a DNS SPF TXT record on a domain they own, embedding macro expansions such as %{s}, %{l}, %{d}, or long literal strings that balloon the resolved domain-spec. The attacker then sends email to a target hMailServer instance using an envelope sender under that domain. Each receiving worker thread performs the SPF evaluation and stalls inside the quadratic truncation loop.

No exploitation code is required beyond publishing a malicious SPF record and generating inbound SMTP traffic. See the GitLab hMailServer Work Item #74 for upstream technical discussion.

Detection Methods for CVE-2026-107575

Indicators of Compromise

  • Elevated SPF evaluation latency recorded in hMailServer logs, with individual checks taking seconds rather than milliseconds.
  • Repeated inbound SMTP sessions from envelope senders whose domains publish unusually long SPF TXT records containing macro sequences.
  • Growth in worker-thread utilization or SMTP queue depth that correlates with inbound mail from a small set of external domains.

Detection Strategies

  • Parse mail server logs for abnormal SPF processing time per message and alert on outliers exceeding a baseline threshold.
  • Query DNS resolver telemetry for TXT lookups that return SPF records exceeding typical length or containing repeated macro expansions.
  • Correlate SMTP connection sources with per-connection CPU time to identify senders that disproportionately exhaust worker threads.

Monitoring Recommendations

  • Track hMailServer process CPU utilization and worker-thread count during SMTP peak hours.
  • Monitor SMTP queue latency and 451 temporary failure rates as leading indicators of worker exhaustion.
  • Capture DNS responses for SPF lookups and flag records with expanded domain-spec lengths approaching or exceeding 253 characters.

How to Mitigate CVE-2026-107575

Immediate Actions Required

  • Upgrade hMailServer to version 6.3.6, which contains the fix for the quadratic SPF macro expansion.
  • Inventory all hMailServer deployments to confirm no instances remain on 6.3.4 or 6.3.5.
  • Review SMTP worker-pool sizing and timeout settings to limit the impact of any single stalled SPF evaluation.

Patch Information

Progressive Robot released hMailServer 6.3.6 to address this issue. Patch details are available in the GitLab hMailServer Release 6.3.6 notes and the referenced Work Item #74.

Workarounds

  • Where upgrading is not immediately possible, disable SPF checking in hMailServer configuration until the patch can be applied.
  • Place the mail server behind an upstream SMTP gateway or anti-spam appliance that performs SPF evaluation independently and rejects malformed records.
  • Apply per-source SMTP rate limiting to reduce the volume of inbound messages that can trigger SPF processing from any single external domain.
bash
# Configuration example: disable SPF via hMailServer COM API as a temporary workaround
# PowerShell
$hMS = New-Object -ComObject hMailServer.Application
$hMS.Authenticate("Administrator", "<password>")
$settings = $hMS.Settings.AntiSpam
$settings.SpfEnabled = $false
$settings.Save()

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.