{"id":"CVE-2026-107581","aliases":["CVE-2026-107581"],"related":[],"kind":"vulnerability","state":"published","title":"Inefficient Algorithmic Complexity in hMailServer","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"}],"published":"2026-10-08T11:47:16.084Z","modified":"2026-10-08T21:02:43.860Z","severity":{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-407"],"affected":[{"ranges":[{"type":"semver","introduced":"6.0.0","fixed":"6.3.6","status":"affected"}],"vendor":"Progressive Robot Ltd","product":"hMailServer","repo":"https://gitlab.com/hmailserver/hmailserver","source":"cvelist"}],"references":[{"url":"https://gitlab.com/hmailserver/hmailserver/-/work_items/68","tags":[],"sources":["cvelist","nvd"]},{"url":"https://gitlab.com/hmailserver/hmailserver/-/releases/v6.3.6","tags":[],"sources":["cvelist","nvd"]}],"credits":["Found in the hMailServer project's own security review (Progressive Robot Ltd)"],"assigner":"GitLab","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-08T14:18:56.518Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-107581","url":"https://www.cve.org/CVERecord?id=CVE-2026-107581","licence":"CVE Terms of Use","modified":"2026-10-08T14:19:53.760Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-107581","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107581","licence":"Public domain","modified":"2026-10-08T21:02:43.860Z"}],"updatedAt":"2026-11-25T22:59:43.146Z","epss":{"score":0.00249,"percentile":0.17333,"date":"2026-12-01T12:00:22.000Z"}}