DKIM Signature Forgery Vulnerability in hMailServer
Progressive Robot hMailServer 6.0.0 through 6.3.6 contains a vulnerability allowing unauthenticated remote attackers to forge DKIM-signed emails for hosted domains via improper verification of sender identity during the signing process.
CVE search metadata
CVE search record: CVE-2026-107567. Severity: high. CVSS: 7.5. KEV: no. Product: hMailServer (6.0.0 through 6.3.6), hMailServer (6.0.0-6.3.6). Brief: DKIM Signature Forgery Vulnerability in hMailServer. Brief link: https://feed.craftedsignal.io/briefs/2026-10-hmailserver-dkim-spoof/
What's new
Progressive Robot hMailServer versions 6.0.0 through 6.3.6 suffer from a critical flaw in their DKIM signing implementation. When DKIM signing is enabled for a hosted domain, the mail server applies a cryptographic signature to all outgoing messages based on the 'From' header, prior to verifying the authenticity of the sender. This logic applies to any inbound message, including those submitted by unauthenticated remote sources.
An attacker can craft an email with an arbitrary 'From' address belonging to a domain hosted by the vulnerable server. The server, failing to perform sender verification before the signature process, cryptographically signs the malicious message using the domain's private DKIM key. If the mail server is configured with forwarding rules, aliases, distribution lists, or Sieve redirects that result in the message being relayed to external recipients, the forged message will pass DKIM and DMARC alignment checks, significantly increasing the probability of successful phishing and social engineering attacks.
Attack Chain
- Attacker identifies a target organization using a vulnerable version of hMailServer (6.0.0 - 6.3.6) with DKIM signing enabled.
- Attacker confirms the target domain utilizes forwarding, aliases, or distribution lists that relay mail to external addresses.
- Attacker sends a malicious email via SMTP to the hMailServer, setting the 'From' header to a spoofed address within the target domain.
- hMailServer receives the inbound message and performs the DKIM signing process based solely on the unverified 'From' header.
- The server appends a valid cryptographic signature corresponding to the target domain’s DKIM key to the malicious email.
- The server processes the email through its configured routing (e.g., mail rule or forward) and relays the signed, forged message to an external recipient.
- The external recipient's mail infrastructure performs SPF/DKIM/DMARC validation, which passes successfully due to the valid (but forged) signature.
- Recipient consumes the phishing email, resulting in unauthorized access or credential theft.
Impact
Successful exploitation enables attackers to bypass email authentication mechanisms, allowing them to send highly credible phishing emails that appear to originate from legitimate domains hosted on the affected infrastructure. This facilitates business email compromise (BEC), credential theft, and the distribution of malicious payloads to external users. The vulnerability impacts organizations relying on hMailServer for mail delivery, specifically those utilizing automated forwarding or external aliases.
Recommendation
- Patch immediately: Upgrade hMailServer to a version beyond 6.3.6 that implements sender authentication prior to the DKIM signing process.
- Configuration mitigation: If an immediate upgrade is not possible, disable DKIM signing for domains that utilize forwarding, aliases, or distribution lists that relay mail externally, until the patch is applied.
- Security policy: Enable 'SmtpAuthenticatedSenderCheck' in the hMailServer configuration to force authentication checks on envelope addresses, though this does not fully mitigate the risk of signing forgeries based on the 'From' header.
- Monitoring: Monitor email logs for unusual spikes in forwarded messages or relay activity originating from unauthenticated sources that utilize domain-specific DKIM keys.
Immediate actions
Upgrade hMailServer to a version containing the fix for CVE-2026-107567.
Mitigations
Disable DKIM signing for hosted domains that utilize external mail forwarding or aliases.
CVE-2026-107567