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-107566 Overview
CVE-2026-107566 is a missing authorization vulnerability [CWE-862] in Progressive Robot hMailServer. The flaw affects the Sieve editheader action in versions 6.2.22 through 6.3.6 and the mail-rule Set header value action in versions 6.0.0 through 6.3.6. An authenticated user can manipulate message headers to send mail as any address. When the forged sender's domain is hosted by the server with DomainKeys Identified Mail (DKIM) signing enabled, the server signs the forged message with that domain's DKIM key. This produces a forgery that passes Domain-based Message Authentication, Reporting and Conformance (DMARC) alignment checks.
Critical Impact
Authenticated users can send DKIM-signed mail from any address at a hosted domain, producing forgeries that pass DMARC validation.
Affected Products
- Progressive Robot hMailServer 6.2.22 through 6.3.6 (Sieve editheader action)
- Progressive Robot hMailServer 6.0.0 through 6.3.6 (mail-rule Set header value action)
- hMailServer REST API from version 6.3.4 through 6.3.6 (domain-scoped API keys)
Discovery Timeline
- 2026-10-19 - CVE CVE-2026-107566 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-107566
Vulnerability Analysis
The vulnerability stems from missing authorization checks on header-modification operations in two separate hMailServer features. In the Sieve filtering engine, the editheader extension permits addheader and deleteheader operations against any header field except Received and Return-Path. The server applies these header edits before queueing a redirect, so the redirected copy carries the modified headers as the script left them.
The DKIM signing path compounds the impact. The server signs the first delivery pass of a message as the domain named in its From header, provided the server signs DKIM for that domain and the message carries no existing signature from it. A Sieve script can therefore delete and re-add a From header pointing to another account or any address at a hosted domain, then redirect. The server sends the message in that name and signs it with the targeted domain's DKIM key, producing a DMARC-aligned forgery.
The mail-rule engine exhibits the same flaw. A domain's or account's rule using the Set header value action can set From, Sender, Resent-From, Resent-Sender, or DKIM-Signature ahead of a forward or copy. This exposure extends to accounts acting on their own rules over COM, domain administrators, and REST API keys scoped to a domain.
Root Cause
The editheader action placed no restriction on From, Sender, Resent-From, Resent-Sender, or DKIM-Signature fields. The mail-rule Set header value action similarly lacked field-level authorization. Neither code path checked whether the authenticated principal was authorized to assert the resulting identity before DKIM signing occurred.
Attack Vector
An authenticated user authors a Sieve script or mail rule that deletes the existing From header, inserts a From header naming the targeted identity, and triggers a redirect or forward. For messages arriving signed from another sender whose domain the server also signs for, the attacker deletes the inbound DKIM-Signature, alters a field, and redirects. The server then re-signs the altered message under the sender's domain key. See the GitLab hMailServer Work Item #83 for technical details.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-107566
Indicators of Compromise
- Outbound messages where the From domain matches a hosted domain but the originating authenticated account belongs to a different mailbox or domain.
- Sieve scripts containing editheader, addheader, or deleteheader operations targeting From, Sender, Resent-From, Resent-Sender, or DKIM-Signature.
- Mail rules with Set header value actions that modify identity-asserting header fields prior to a forward or copy action.
Detection Strategies
- Audit all Sieve scripts stored on hMailServer instances for editheader usage against sensitive headers.
- Review COM and REST API call logs for Set header value rule creations issued by domain-scoped API keys or domain administrators.
- Correlate outbound SMTP submission logs with authenticated session identity to flag mismatches between the authenticated account and the asserted From address.
Monitoring Recommendations
- Enable verbose logging on the Sieve engine and mail-rule executor to capture header mutation events.
- Monitor DKIM signing events for messages where the signing domain differs from the authenticated submitter's domain.
- Alert on inbound DMARC aggregate reports showing unexpected volumes of aligned mail from internal infrastructure.
How to Mitigate CVE-2026-107566
Immediate Actions Required
- Upgrade hMailServer to version 6.3.7 or later, which addresses the missing authorization in both the Sieve editheader action and the mail-rule Set header value action.
- Audit existing Sieve scripts and mail rules across all hosted domains and remove any that modify identity-asserting headers.
- Rotate DKIM selectors for hosted domains if forgery activity is suspected, and review DMARC aggregate reports for anomalies.
Patch Information
Progressive Robot released hMailServer 6.3.7 to remediate this vulnerability. Refer to the GitLab hMailServer Release 6.3.7 notes for full details.
Workarounds
- Disable the Sieve editheader extension on affected hMailServer deployments until the patch can be applied.
- Restrict creation of mail rules containing Set header value actions through COM and REST API interfaces, and revoke domain-scoped API keys that are not strictly required.
- Limit domain administrator privileges to trusted operators and review rule inventories for unauthorized header manipulations.
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

