CVE-2026-126617: Progressive Robot hMailServer - SQL Injection
- Cve: CVE-2026-126617
- Name: Progressive Robot hMailServer - SQL Injection
- Description: 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.
- Impact: Attackers can alter SQL statements with database account privileges, potentially leading to data tampering or further compromise on PostgreSQL.
- Remediation: Update to a version later than 6.2.18 or the latest available version.
- Vulnerability type: sql_injection
- Vulnerability impact: data_tampering
- Requirement type: logged_in
- Requirements: Attacker must be authenticated to send mail or trigger delivery notices/replies; greylisting or indexing may be required for other vectors.
- Labels source: securitycontext
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00419
- Epss percentile: 0.36752
- Assignee: [email protected]
- Published at: 2026-11-11T09:17:13Z
- Age in days: 13
- Modified at: 2026-11-17T15:17:39Z
- References total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-126617
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
References
| Url | Source | Tags |
|---|---|---|
| https://gitlab.com/hmailserver/hmailserver/-/releases/v6.2.19 | nvd | |
| https://gitlab.com/hmailserver/hmailserver/-/work_items/101 | nvd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts