{"id":"CVE-2026-107581","published":"2026-10-08T11:47:16Z","modified":"2026-10-08T14:19:53Z","title":"Inefficient Algorithmic Complexity in hMailServer","vendor":"Progressive Robot Ltd","product":"hMailServer","tier":"tail","description":{"text":"Progressive Robot hMailServer 6.0.0 through 6.3.5 processes several IMAP commands from a signed-in account in time quadratic in the command's length or in the number of elements it names, and can be made to hold memory out of proportion to a command. The FETCH data-item parser normalised a BODY[] section with a case-insensitive string replacement that copied the whole item per occurrence and split the item list by repeatedly copying the remainder of the command; the server's case-insensitive search compared a needle afresh at every position, so a long SEARCH TEXT key over a message cost the product of the two lengths; SEARCH message sets and the saved-result marker ($), SORT criteria, HEADER.FIELDS name lists and UID ranges were each read once per message rather than once per command; and a FETCH naming a message's sections very many times read and held every section in memory before sending any. An IMAP command may continue past one line through non-synchronizing literals, so one command can reach about eleven megabytes. The IMAP worker threads are a small pool shared with SMTP and POP3, so a signed-in user sending such commands can make the IMAP, SMTP and POP3 services stop responding (CWE-407) and can consume excessive memory (CWE-400).","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00436,"percentile":0.29713,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://gitlab.com/hmailserver/hmailserver/-/work_items/68","tags":[]},{"url":"https://gitlab.com/hmailserver/hmailserver/-/releases/v6.3.6","tags":[]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":5.94},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"progressive-robot","affectedVersions":[{"vendor":"Progressive Robot Ltd","product":"hMailServer","versions":[">= 6.0.0, < 6.3.6"]}],"solutions":{"items":["Upgrade to hMailServer 6.3.6, which parses the FETCH command and runs the server's case-insensitive string operations in a single pass, reads each SEARCH and UID set and HEADER.FIELDS list once per command, substitutes the saved-result marker once, and refuses a FETCH whose sections add up to many times the message before sending any. There is no configuration workaround; the commands require only a signed-in account. Restricting IMAP access to trusted accounts and networks reduces who can send them."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-08T14:18:56.518928Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-94863","exploited":false,"provenance":"source"}}