CVE-2026-107567: Use of Less Trusted Source in hMailServer
Use of a less trusted source in the DKIM signing of Progressive Robot hMailServer 6.0.0 through 6.3.6 allows a remote unauthenticated attacker to have mail they write signed with the DKIM key of a domain the server hosts, so that it passes DKIM and DMARC for that domain at other receivers. With DKIM signing enabled for a hosted domain, the server signed every message on its first delivery pass as the domain named in its From header, before local delivery, whatever the message's origin and without checking that its sender had authenticated. A sender anywhere could therefore send the server, as ordinary inbound mail, a message whose From is any address at such a domain, and the server signed it with that domain's key. Every copy the server then sent on to an address outside carried a valid signature aligned with the forged From, whatever the domain's DMARC policy: an account's forward, a mail rule's forward or copy, a Sieve redirect, an alias or distribution list with an outside member, the mirror copy, a managed-list or journal copy, or a message released from quarantine. A signed copy can also be re-sent to other recipients while the domain's key is unchanged. Exploitation needs DKIM signing to be enabled for the hosted domain (it is off until configured) and, for the forgery to leave the server, a forward, alias, list or rule that carries the domain's mail to an outside address. The signer likewise signed a message submitted over authenticated SMTP as whatever hosted domain its From header named, a header authenticated SMTP does not hold to the submitting account, so that an account of one hosted domain could have mail written in the name of another hosted domain signed with that domain's key; this mattered where the server holds signed-in senders to their own envelope addresses (SmtpAuthenticatedSenderCheck, off by default), as the signature was then the remaining way for such mail to pass the other domain's DMARC policy.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
hMailServerto a version that resolves this vulnerability.Fixed in 6.3.7 - Remove
Remove the affected component from your environment.
Remove forwards, rule forwards, Sieve redirects, alias and list members, and mirror addresses that carry mail to outside addresses.
- Configuration
For each hosted domain the server signs for, publish a DMARC policy of quarantine or reject and set DMARCFailureScore at or above SpamDeleteThreshold.
hMailServer DMARC DMARC policy and DMARCFailureScore = quarantine or reject; DMARCFailureScore at or above SpamDeleteThreshold - Configuration
Disable DKIM signing for the hosted domains.
hMailServer DKIM signing DKIM signing for hosted domains = disabled - Compensating control
Refuse messages in an OnAcceptMessage event script when the client has not authenticated and the From header names a domain the server signs for.
- Operational
Rotate the DKIM key of any domain whose key may have signed forged mail.
Event History
Frequently Asked Questions
Which deployments are exposed?
Progressive Robot hMailServer versions 6.0.0 through 6.3.6 are affected when DKIM signing is enabled for a hosted domain. Exploitation also depends on the server having a way to send a resulting copy to an external recipient, such as forwarding, redirects, aliases, distribution lists, mirror or journal copies, quarantine release, or similar delivery paths.
Does an attacker need an account or prior authentication?
No. A remote unauthenticated sender can submit ordinary inbound mail with a forged From address at a hosted DKIM-enabled domain; the server signs it before local delivery without verifying that the sender authenticated.
What is the practical impact of a successful exploit?
The attacker can obtain externally delivered messages with a valid DKIM signature aligned to the forged From domain. Those messages can pass DKIM and DMARC checks at receiving systems, and signed copies may be resent while the domain's DKIM key remains unchanged.
How can administrators determine whether they are affected?
Identify hMailServer instances running versions 6.0.0 through 6.3.6, then review which hosted domains have DKIM signing enabled. For those domains, examine configurations and logs for inbound messages using the domain in the From header that were subsequently forwarded, redirected, copied, or otherwise delivered to external addresses.