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-104704 Overview
CVE-2026-104704 affects Progressive Robot hMailServer versions 6.0.0 through 6.3.5. The server fails to enforce Transport Layer Security (TLS) for outbound Simple Mail Transfer Protocol (SMTP) delivery when a recipient mail exchanger publishes DNSSEC-validated TLSA records that lack a DANE-EE (usage 3) entry. This behavior contradicts RFC 7672 section 2.2. The server treats TLSA record sets containing only DANE-TA (usage 2) or otherwise unusable records as absent, falling back to opportunistic TLS. A network-positioned attacker can suppress or break the STARTTLS negotiation, forcing cleartext delivery that enables message interception and modification [CWE-319].
Critical Impact
Attackers with an active network position can strip STARTTLS and read or alter outbound mail intended for DANE-protected recipients.
Affected Products
- Progressive Robot hMailServer 6.0.0 through 6.3.5
- Fixed in hMailServer 6.3.6
- Outbound SMTP delivery component (DANE/TLSA validation path)
Discovery Timeline
- 2026-10-08 - CVE-2026-104704 published to the National Vulnerability Database (NVD)
- 2026-10-08 - Last updated in NVD database
Technical Details for CVE-2026-104704
Vulnerability Analysis
The vulnerability resides in hMailServer's handling of DNS-Based Authentication of Named Entities (DANE) during outbound SMTP delivery. RFC 7672 section 2.2 requires an SMTP sender to treat a DNSSEC-validated TLSA record set as mandating TLS whenever at least one usable record exists, even if no DANE-EE (certificate usage 3) record is present. hMailServer instead inspects only DANE-EE records. When the validated TLSA set consists solely of DANE-TA (usage 2) records or records the implementation cannot process, the server behaves as though no TLSA records were published.
This misbehavior collapses the DANE security guarantee into opportunistic TLS. Opportunistic TLS permits cleartext fallback on STARTTLS failure, which an active network attacker can trigger at will.
Root Cause
The root cause is incomplete implementation of the TLSA usage-selector matrix defined in RFC 7672. The outbound delivery logic conflates "no usable DANE-EE record" with "no TLSA records published," removing the mandatory-TLS state that DANE-TA records should impose. The underlying weakness is cleartext transmission of sensitive information [CWE-319].
Attack Vector
An attacker who can intercept or modify traffic between the hMailServer instance and the recipient mail exchanger carries out the attack. The attacker interferes with the SMTP conversation by stripping the STARTTLS capability advertisement or responding with a protocol error during negotiation. Because hMailServer did not escalate the TLSA records to mandatory TLS, the sending server retries delivery in cleartext. The attacker then observes or modifies the message contents in transit. Attack complexity is high because the adversary must hold an on-path position between the sender and a recipient domain whose TLSA records omit DANE-EE entries.
See the GitLab hMailServer Work Item #61 for the upstream analysis.
Detection Methods for CVE-2026-104704
Indicators of Compromise
- Outbound SMTP sessions to DANE-protected domains completing without a STARTTLS command in server transaction logs.
- Repeated STARTTLS negotiation failures followed by successful cleartext delivery to the same mail exchanger.
- DNS resolver logs showing TLSA lookups for destination domains whose records contain only DANE-TA (usage 2) entries.
Detection Strategies
- Correlate hMailServer SMTP delivery logs with authoritative TLSA record contents to identify cleartext deliveries to DANE-publishing domains.
- Monitor egress SMTP traffic on TCP/25 for sessions missing TLS handshakes to destinations where DANE is expected.
- Alert on protocol downgrade patterns where EHLO responses from recipient MX hosts appear to lose the STARTTLS keyword between retries.
Monitoring Recommendations
- Enable verbose SMTP client logging on hMailServer and forward delivery records to a central analytics platform for TLS-usage auditing.
- Deploy external DANE conformance probes that validate outbound mail flow against test domains publishing DANE-TA-only TLSA records.
- Track changes in TLS cipher negotiation metrics across outbound mail queues to surface sudden shifts to plaintext delivery.
How to Mitigate CVE-2026-104704
Immediate Actions Required
- Upgrade hMailServer to version 6.3.6 or later, which corrects the TLSA record handling.
- Inventory outbound mail destinations and prioritize upgrades for servers that deliver to domains publishing DANE records.
- Review historical delivery logs for cleartext sessions to DANE-protected recipients and assess potential exposure of transmitted content.
Patch Information
Progressive Robot released hMailServer 6.3.6 to address CVE-2026-104704. The release notes and change set are available at the GitLab hMailServer Release 6.3.6 page. The fix aligns outbound TLSA handling with RFC 7672 section 2.2 so that any usable record set enforces mandatory TLS.
Workarounds
- Configure explicit per-domain TLS policies that require TLS for destinations known to publish DANE-TA-only TLSA records until patching completes.
- Route outbound mail through an intermediary mail transfer agent (MTA) with correct DANE enforcement where immediate upgrade is not feasible.
- Restrict outbound SMTP egress paths to trusted network segments to reduce exposure to on-path attackers while remediation is in progress.
# Verify installed hMailServer version and plan upgrade to 6.3.6+
# Confirm fixed release availability at the vendor release page
# https://gitlab.com/hmailserver/hmailserver/-/releases/v6.3.6
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

