Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-107578 Overview
CVE-2026-107578 is a local privilege escalation vulnerability in Progressive Robot hMailServer versions 6.3.4 and 6.3.5. The flaw stems from improper link resolution [CWE-59] and external control of file paths in administrative command-line operations of hMailServer.exe. An attacker who already executes code as the low-privilege service account can escalate to administrator on Windows or root on Linux. The service account controls folders and file names that privileged operations later touch, including the log folder, data folder, and store-maintenance targets. By planting junctions, mount points, or symbolic links, the attacker redirects privileged file reads, writes, deletions, and permission changes to arbitrary paths.
Critical Impact
A local attacker running as the NT SERVICE\hMailServer or packaged hmailserver user can elevate to administrator or root when a privileged maintenance operation runs.
Affected Products
- Progressive Robot hMailServer 6.3.4 (Windows)
- Progressive Robot hMailServer 6.3.5 (Windows and Linux)
- Installations using the default NT SERVICE\hMailServer service account
Discovery Timeline
- 2026-10-08 - CVE-2026-107578 published to NVD
- 2026-10-08 - Last updated in NVD database
- hMailServer 6.3.6 - Fixed release published on GitLab
Technical Details for CVE-2026-107578
Vulnerability Analysis
The vulnerability arises because privileged hMailServer operations trust file paths and names that the low-privilege service account can modify. On Windows, the installer, DBSetup, the Control Panel, and administrator-initiated commands write log entries and crash records into the log folder. They also create, delete, and change permissions on the self-signed certificate and private key in the data folder, and rewrite message files there. All of these paths sit in directories the service account can alter.
Store-maintenance operations further resolve files by names taken from the database, which the service account can write. These names can point outside the data folder entirely. On Linux, store-maintenance and object-storage operations run as root and follow symbolic links the packaged hmailserver user plants in directories it owns. A root-run operation therefore reads, writes, or removes the link's target with root privileges.
Root Cause
The underlying weakness is link following and external control of file paths [CWE-59] in code paths that execute with elevated privilege. Privileged routines do not validate that path components are not junctions, mount points, or symbolic links before performing file operations. They also accept database-sourced file names without constraining them to the data folder.
Attack Vector
Exploitation requires local access as the hMailServer service account and user interaction, because a privileged operation must subsequently run. The attacker replaces or augments legitimate paths with filesystem links pointing to attacker-chosen targets. When an administrator or root process performs log writes, certificate operations, message rewrites, or store maintenance, it operates on the redirected target. The attacker gains full administrator rights on Windows or root on Linux.
No verified public exploit code is available. Refer to GitLab hMailServer Work Item #71 for the technical write-up.
Detection Methods for CVE-2026-107578
Indicators of Compromise
- Creation of NTFS junctions, mount points, or Linux symbolic links inside the hMailServer log or data folders by the service account.
- Unexpected modifications to the self-signed certificate or private key files immediately before or after an administrator action.
- Database entries containing message file names that resolve to paths outside the configured data folder.
Detection Strategies
- Monitor process activity by hMailServer.exe, DBSetup, and the Control Panel binary for file operations traversing symbolic links or junctions.
- Audit filesystem events in the hMailServer log and data directories for link-creation syscalls (CreateSymbolicLink, symlink, mklink /J).
- Query the hMailServer message store database for file name fields containing path separators, parent-directory traversal, or absolute paths.
Monitoring Recommendations
- Enable Windows Sysmon Event ID 11 (FileCreate) and Event ID 15 (FileCreateStreamHash) scoped to the hMailServer install and data directories.
- On Linux, enable auditd rules on the hMailServer data folder tracking symlink, symlinkat, and rename syscalls executed by the hmailserver user.
- Alert on any privilege transition where a process owned by root or Administrators opens a file whose path contains a component owned by the hMailServer service account.
How to Mitigate CVE-2026-107578
Immediate Actions Required
- Upgrade to hMailServer 6.3.6 or later, available from the GitLab hMailServer Release 6.3.6 page.
- Restrict interactive and remote logon rights for the NT SERVICE\hMailServer and packaged hmailserver accounts.
- Audit the hMailServer log and data folders for existing junctions, mount points, or symbolic links and remove any that are not legitimate.
Patch Information
Progressive Robot released hMailServer 6.3.6 to address CVE-2026-107578. The release notes and source changes are published on GitLab hMailServer Release 6.3.6. Administrators should validate that privileged operations such as DBSetup, certificate regeneration, and store maintenance resolve only to files inside the intended folders after upgrade.
Workarounds
- Avoid running administrator- or root-level hMailServer operations (installer, DBSetup, Control Panel, store maintenance) on hosts where the service account may be compromised until the patch is applied.
- Tighten NTFS or POSIX permissions on parent directories of the hMailServer log and data folders so the service account cannot create reparse points or symlinks.
- Validate that message file names stored in the database point only to files within the configured data folder; remove or sanitize any that do not.
# Linux: disallow symlink following for the hmailserver user on protected dirs
# Requires kernel fs.protected_symlinks and ownership separation
sysctl -w fs.protected_symlinks=1
sysctl -w fs.protected_hardlinks=1
chown root:root /var/lib/hmailserver
chmod 755 /var/lib/hmailserver
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

