Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as mail-sending user
-
DeliverySend message to crafted recipient address
-
ExploitValue breaks out of quoted SQL literal
-
ExecutionInjected SQL runs under server DB account
-
ImpactRead/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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (GitLab).
CVSS VectorVendor: GitLab
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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
More in Hmailserver
View allArbitrary JScript execution in Progressive Robot Ltd's hMailServer 6.0.0 through 6.3.3 on Windows lets an unauthenticate
Cross-tenant configuration takeover in hMailServer 6.0.0 through 6.3.6 lets an authenticated user holding only a domain-
Cross-site scripting in Progressive Robot hMailServer 6.3.2 through 6.3.5 can let a remote, unauthenticated attacker exe
Local privilege escalation in Progressive Robot hMailServer 6.2.3 through 6.3.7 on Windows allows an authenticated local
Local privilege escalation in the Windows installer of Progressive Robot hMailServer 6.0.0 through 6.3.7 lets a local au
Incorrect authorization in the COM administration API of hMailServer 6.3.4 through 6.3.6 lets a credential holding the s
Local privilege escalation in Progressive Robot hMailServer 6.0.0 through 6.3.6 allows any authenticated, non-administra
Incorrect default permissions in the Windows installer for Progressive Robot hMailServer 6.0.0 through 6.3.5 let any loc
Heap-based buffer overflow in hMailServer 6.0.0 through 6.3.3 on Windows lets a local interactive user - with no hMailSe
Local privilege escalation in hMailServer 6.0.0 through 6.3.5 on Windows allows an authenticated local user-one with an
Local privilege escalation in Progressive Robot hMailServer 6.3.4 and 6.3.5 on Linux allows an attacker who already has
Crafted JSON member names drive quadratic parsing time in hMailServer 6.3.6 and 6.3.7, allowing remote attackers to pin
EUVD-2026-123335
GHSA-g98g-j6w4-w22m
NVD
CVE.org
EPSS
VulDB
Exploit-DB