Skip to main content

hMailServer CVE-2026-126617

| EUVDEUVD-2026-123335 HIGH
SQL Injection (CWE-89)
2026-11-11 GitLab GHSA-g98g-j6w4-w22m
8.8
CVSS 3.1 · Vendor: GitLab
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as mail-sending user
  2. Delivery
    Send message to crafted recipient address
  3. Exploit
    Value breaks out of quoted SQL literal
  4. Execution
    Injected SQL runs under server DB account
  5. Impact
    Read/alter mail database (stacked queries on PostgreSQL)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires hMailServer 6.0.0-B1 through 6.2.18 configured with a MySQL/MariaDB or PostgreSQL backend; SQL Server and the default SQL Server Compact bind parameters and are not affected, so default installs on the bundled database are not exploitable. Default-configuration path: an authenticated user permitted to send mail reaches the vulnerable statement by sending to a recipient address of their choosing (the recipient row stores the address twice). Unauthenticated paths are more limited: a remote sender triggers it via a message the server returns to the envelope sender (delivery-failure notice or automatic reply), or - only when greylisting or IMAP-SORT message indexing is enabled, both OFF by default - through greylisting envelope addresses or stored IMAP-SORT header metadata. Impact scope depends on engine: PostgreSQL permits stacked/follow-on statements; MySQL/MariaDB confine injection to the single statement.

Impact

This is a genuine but second-tier priority. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H, 8.8) is consistent with the described mechanism: a remote, low-complexity SQL injection that in the default configuration needs only an account permitted to send mail (PR:L). The input provides no EPSS score, no CISA KEV listing, and no PoC or exploit reference - only the vendor's own GitLab work item and the v6.2.19 release - so there is no public exploit identified at time of analysis and no signal of active or automatable exploitation. The vuln.today Decision label is this_week, not act_now/emergency, which aligns with the absence of KEV/EPSS pressure. Two factors materially shrink real-world exposure: the flaw affects ONLY MySQL/MariaDB and PostgreSQL backends, while SQL Server and the default SQL Server Compact backend bind parameters and are explicitly unaffected; and the fully unauthenticated paths (bounce/auto-reply to the envelope sender, or greylisting/IMAP-SORT indexing) are conditional, with greylisting and indexing off by default. Worst case is PostgreSQL, whose client runs the whole statement text, permitting stacked queries and thus arbitrary SQL - full read/write of the mail database under the server's DB account; MySQL/MariaDB confine the change to the single statement. Net: real and worth patching this week on affected backends, not an emergency, and not relevant to SQL Server deployments.

Exploit ScenarioDerived

On an hMailServer instance backed by MySQL/MariaDB or PostgreSQL, an authenticated user allowed to send mail addresses a message to a recipient string crafted to collide with a later-substituted parameter value; because each recipient row stores the address twice and parameters are inlined via per-value string replacement, the crafted value breaks out of its quoted literal and is parsed as SQL. On PostgreSQL the attacker can append further statements for full database compromise. No public exploit code is identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 11, 2026

SQL injection in the database layer of hMailServer 6.0.0-B1 through 6.2.18 allows a remote attacker to alter the SQL statements the server executes, but only when the server is backed by MySQL/MariaDB or PostgreSQL - installations on SQL Server or the default bundled SQL Server Compact bind their parameters and are not affected. In the default configuration an authenticated user who is permitted to send mail reaches the vulnerable statement simply by addressing a message to an address of their choosing, since the recipient row stores that address twice; an unauthenticated remote sender can reach the same statement through a message the server returns to the envelope sender, such as a delivery-failure notice or an automatic reply, and - only if greylisting or IMAP-SORT message indexing has been enabled, both off by default - through greylisting envelope addresses or stored message header metadata. Impact differs by engine: on PostgreSQL the injected text can carry follow-on statements, while on MySQL/MariaDB the change is confined to the single statement; no public exploit code was identified at time of analysis and the flaw is not in CISA KEV.

RemediationAI

Vendor-released patch: hMailServer 6.2.19, published at https://gitlab.com/hmailserver/hmailserver/-/releases/v6.2.19 and tracked in https://gitlab.com/hmailserver/hmailserver/-/work_items/101; upgrading from any 6.0.0-B1 through 6.2.18 installation is the complete fix and is the priority action for anyone running a MySQL/MariaDB or PostgreSQL backend. Where the upgrade cannot be applied immediately, the most effective compensating control is to move the server onto an unaffected backend - SQL Server or the bundled SQL Server Compact, both of which bind parameters - at the cost of a database migration and, for SQL Server Compact, the scalability and concurrency limits of the embedded engine. On MySQL/MariaDB or PostgreSQL installations, restrict the ability to send mail to trusted, vetted accounts, since the default-configuration path requires only an authenticated sender addressing a message to an address of their choosing; this does not close the unauthenticated envelope-sender path triggered by delivery-failure notices and automatic replies. Keeping greylisting and IMAP SORT message indexing disabled removes the two optional unauthenticated vectors but has no effect on the default authenticated path, and enabling greylisting is a spam-control trade-off while disabling message indexing degrades IMAP SORT performance. As a residual containment measure, review the privileges granted to the server's database account, because an altered statement executes with exactly those rights.

Affected VersionsENISA

hMailServer 6.0.0-B1 ≤6.2.18

Affected Packages

euvd hmailserver no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-89 (SQL injection) in hMailServer's database abstraction layer rather than in a single application query. On MySQL/MariaDB and PostgreSQL backends the layer did not bind parameters: SQLStatement::GenerateFromCommand wrote every value into the statement text as a quoted literal and then performed a separate string replacement over the whole statement text for each parameter. Because substitution happened sequentially against already-substituted text, a value containing the name of a parameter that was substituted later had that name replaced inside the value, and the later value - carrying its own quote characters - was inserted there, terminating the string literal early and placing attacker-controlled text into the statement as SQL. The practical consequence therefore depends on the driver: PostgreSQL's client call executes every statement contained in the text it is given, so stacked or follow-on statements are possible, whereas MySQL/MariaDB executes one statement per call, confining the alteration to the statement the injection occurs in. Any altered statement runs with the privileges of the server's configured database account. The affected query paths are the per-recipient row written for a queued message (which stores the recipient address twice, giving the default-configuration, authenticated-sender path), the message the server sends back to the envelope sender (delivery-failure notice or automatic reply, reachable unauthenticated), and - only when explicitly enabled - greylisting envelope addresses and the four header fields stored as message metadata for IMAP SORT. SQL Server and SQL Server Compact use bound parameters and are not affected.

Know when Hmailserver gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitLab) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Default reliable path needs a low-privilege mail-sending account (PR:L) over the network with no interaction; SQL injection yields high database confidentiality, integrity, and availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitLab).

CVSS VectorVendor: GitLab

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

SQL injection in the database layer of Progressive Robot hMailServer 6.0.0-B1 through 6.2.18, when the server uses MySQL/MariaDB or PostgreSQL, allows a remote attacker to alter SQL statements the server runs. On those two engines parameters are not bound: SQLStatement::GenerateFromCommand wrote each value into the statement's text as a quoted literal with a separate string replacement over the whole text per parameter, so a value holding the name of a parameter substituted after it had that name replaced, inside the value, by the later value with its own quotes, which ended the literal early and placed the later value in the statement as SQL. The row the server writes for each recipient of a queued message carries the recipient's address twice, so in the default configuration an authenticated user who may send mail reaches it by sending to an address of their choosing. A remote unauthenticated sender reaches the same statement through a message the server sends to the envelope sender, such as a delivery failure notice or an automatic reply, and, when greylisting or message indexing is enabled (both are off by default), through the greylisting record's envelope addresses or through the message metadata the server stores for IMAP SORT, which carries four header fields of a received message. An altered statement runs with the privileges of the server's database account; on PostgreSQL, whose client call runs every statement in the text it is given, further statements can follow it, while on MySQL/MariaDB, where one statement is run per call, the change is confined to the statement it is in. SQL Server and SQL Server Compact, where parameters are bound, are not affected.

Executive ViewAI

Why It Matters

CVE-2026-126617 is a high-severity SQL injection vulnerability in hMailServer versions 6.0.0-B1 through 6.2.18, affecting installations using MySQL/MariaDB or PostgreSQL backends. Both authenticated mail-sending users and unauthenticated remote senders can reach the vulnerable statement through normal email workflows, including message addressing and delivery-failure notices. Leadership should prioritize this issue because it can lead to database compromise and data breach, with potential for follow-on statements on PostgreSQL.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: switching to SQL Server or SQL Server Compact backends (which are not vulnerable), restricting SMTP access to trusted sources, disabling greylisting and IMAP-SORT indexing if enabled, and monitoring database logs for anomalous SQL activity.

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Medium
popular free Windows mail server, small-business deployments; affected DB backend is non-default
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2026-100741 CRITICAL POC
9.8 Sep 27

Arbitrary JScript execution in Progressive Robot Ltd's hMailServer 6.0.0 through 6.3.3 on Windows lets an unauthenticate

CVE-2026-114489 HIGH
8.1 Oct 21

Cross-tenant configuration takeover in hMailServer 6.0.0 through 6.3.6 lets an authenticated user holding only a domain-

CVE-2026-103647 HIGH
8.0 Oct 08

Cross-site scripting in Progressive Robot hMailServer 6.3.2 through 6.3.5 can let a remote, unauthenticated attacker exe

CVE-2026-126607 HIGH
7.8 Nov 11

Local privilege escalation in Progressive Robot hMailServer 6.2.3 through 6.3.7 on Windows allows an authenticated local

CVE-2026-126612 HIGH
7.8 Nov 11

Local privilege escalation in the Windows installer of Progressive Robot hMailServer 6.0.0 through 6.3.7 lets a local au

CVE-2026-114490 HIGH
7.8 Oct 21

Incorrect authorization in the COM administration API of hMailServer 6.3.4 through 6.3.6 lets a credential holding the s

CVE-2026-107571 HIGH
7.8 Oct 19

Local privilege escalation in Progressive Robot hMailServer 6.0.0 through 6.3.6 allows any authenticated, non-administra

CVE-2026-107573 HIGH
7.8 Oct 08

Incorrect default permissions in the Windows installer for Progressive Robot hMailServer 6.0.0 through 6.3.5 let any loc

CVE-2026-103010 HIGH
7.8 Oct 08

Heap-based buffer overflow in hMailServer 6.0.0 through 6.3.3 on Windows lets a local interactive user - with no hMailSe

CVE-2026-104660 HIGH
7.8 Oct 08

Local privilege escalation in hMailServer 6.0.0 through 6.3.5 on Windows allows an authenticated local user-one with an

CVE-2026-104658 HIGH
7.8 Oct 08

Local privilege escalation in Progressive Robot hMailServer 6.3.4 and 6.3.5 on Linux allows an attacker who already has

CVE-2026-126623 HIGH
7.5 Nov 11

Crafted JSON member names drive quadratic parsing time in hMailServer 6.3.6 and 6.3.7, allowing remote attackers to pin

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy