CVE-2026-126617 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in hMailServer

High 8.8 Published Updated

Remote attackers can alter SQL statements in hMailServer's database layer, injecting SQL that runs with the server's database privileges; hMailServer operators should care.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
No
Fix
None listed

What is CVE-2026-126617?

CVE-2026-126617 is a high-severity SQL injection vulnerability in Progressive Robot Ltd hMailServer, published on 11 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2026-126617?

An affected version is exposed as installed. No special setting or call is needed.

How do I fix CVE-2026-126617?

No fix has been published for CVE-2026-126617 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-126617 being exploited?

There is no known exploitation of CVE-2026-126617 in the wild and no public exploit code.

Sources

Also known as GHSA-g98g-j6w4-w22m.

Is CVE-2026-126617 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free