IT SBIT Services
Schneeberger
DEEN
CVE tracker

Progressive Robot hMailServer: Failed database write reported as success

CVE-2026-126619Medium 4.8

← All vulnerabilities

Summary

hMailServer 6.0.0-B1 through 6.3.7 treats a failed database statement as successful when the statement text contains the [IGNORE-ERRORS] marker, and values from outside, such as envelope addresses, failed logon user names and message headers, can end up in that text. A remote unauthenticated attacker cannot choose the failure, but a write that fails, for example through a constraint violation, deadlock, timeout or full disk, can be lost without any error, so messages may be counted as delivered but never stored or never delivered. The most serious effects depend on specific conditions such as the database engine, backslash-bearing input and enabled database logging, and no privilege is gained.

Affected

  • hMailServer 6.0.0-B1 through 6.3.7
  • Default configuration is not affected; the impact depends on the database backend (MySQL/MariaDB, PostgreSQL, SQL Server, SQL Server Compact) and on conditions described in the advisory

Fixed in

  • Fixed in hMailServer 6.3.8 (released 2 November 2026)

Workaround

  • Unknown. No vendor workaround is documented; upgrading to 6.3.8 is the remedy.
  • For SQL Server and SQL Server Compact, keep database logging off or the log device set to files (the defaults).

Exploitation

  • Not known to be exploited (OffSeq Threat Radar).
  • No public proof-of-concept found.

Our recommendation

  • Upgrade hMailServer to version 6.3.8 or later.
  • Until the upgrade, check that database logging is off or logs to files on SQL Server and SQL Server Compact.
  • Review mail server logs for unexplained gaps between accepted and delivered messages and for failed database errors.
  • Restrict exposure of SMTP, IMAP and POP3 services where possible and monitor for unusual logon failures.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 11 Nov 2026, 19:45.

Original description (NVD)

Misinterpretation of SQL statement text in the database layer of Progressive Robot hMailServer 6.0.0-B1 through 6.3.7 allows a remote unauthenticated attacker to have a failed database write reported to the server as successful. The layer answers a failed statement as a success when it finds the marker [IGNORE-ERRORS], which is meant only for the server's own schema statements (its upgrade scripts and the database log's tables), and statements carry values from outside - an envelope address, the user name of a failed logon, a message's headers - in their text on MySQL/MariaDB and PostgreSQL, and in the batches of the database log on every engine. Up to 6.2.18 the marker was honoured anywhere in a statement, a value included, on MySQL/MariaDB and PostgreSQL. From 6.2.19 it was honoured only inside a comment, but the layer read a backslash inside a string literal as an escape, which SQL Server, SQL Server Compact and PostgreSQL with standard_conforming_strings on (its default) do not, so that on those engines a value holding a backslash could make the layer take part of the statement's literals for statement text and find the marker there: on PostgreSQL from 6.3.3 for every statement carrying an outside value that holds a backslash, with no setting changed for a message delivered into a local mailbox (through an internationalised (SMTPUTF8) envelope sender) and for the IP range an auto-ban writes (named after the user name of the failed logon), and on SQL Server and SQL Server Compact for the database log, when the server logs to the database (logging is off, and the log device is files, by default). A statement run outside a transaction that then failed - a constraint, a deadlock, a lock or statement timeout, a full disk, and up to 6.2.18 a lost connection - was answered as a success, and its caller went on as if the row had been written: a message delivered into a local mailbox could be counted as delivered with no row to show it and no failure notice to its sender, and a message accepted with 250 could be left with no queue row and never delivered (up to 6.2.18, and on PostgreSQL from 6.3.3 when every recipient's address carries the marker too, which needs an address that takes any local part); an auto-ban whose IP range was not written could be logged and counted as applied, with no error reported, while the address stayed unbanned; and message metadata (written only when message indexing is on), entries of the database log and rows of features an administrator turns on could be lost without an error. On MySQL/MariaDB up to 6.2.18 the caller was handed whatever identifier the client library still held for the connection - 0, or that of an insert its last successful statement made, in whatever table - under which a queued message's recipients were then written, so that another message still in the queue could be delivered to them as well. This flaw gives a value no way to change what a statement does, and no privilege is gained.

NVD references (2)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.