---
id: "CVE-2026-126619"
page: "https://infrastack.ai/live/CVE-2026-126619"
kind: "vulnerability"
aliases: ["CVE-2026-126619"]
title: "hMailServer: failed database writes reported as success, losing mail and bans"
severity: "medium"
cvss: 4.8
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "hMailServer", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["hmailserver", "mail-server", "mariadb", "mysql", "package", "postgresql", "sql-server"]
not_affected_if: ["file-logging-only", "version-outside-range"]
published_at: "2026-11-11T09:17:14+00:00"
first_seen_at: "2026-11-11T09:26:48+00:00"
updated_at: "2026-11-11T09:28:49+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126619", "first_seen_at": "2026-11-11T09:26:48+00:00"}]
exploit_sources: []
---

# hMailServer: failed database writes reported as success, losing mail and bans

Link for people: https://infrastack.ai/live/CVE-2026-126619 (this .md is for agents)

hMailServer's database layer treats a failed SQL statement as successful when the statement contains a marker string, and outside values such as sender addresses or logon user names can carry that marker. The result is lost messages, unapplied auto-bans and silently dropped rows, but the flaw does not let an attacker run SQL or gain privileges.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:hMailServer affected range not listed fixed no fixed version listed

## How to check

- Check the installed hMailServer version and compare it with the affected range 6.0.0-B1 through 6.3.7.
- Look for the marker logic only in your own build; unknown whether the sources name a file to check.

## Fix

- Move to a version after 6.3.7; the exact fixed version is unknown from the sources.

## Timeline

- 2026-11-11T09:26:48+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126619

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
