CVE-2026-126622: Incorrect Default Permissions in hMailServer
Incorrect default permissions in the Windows installer of Progressive Robot hMailServer 6.3.7 allow a local authenticated user to run code as the administrator who runs setup, when the server is installed into a program folder that is already there and that accounts other than the administrators could write, such as a folder made beforehand at the root of a drive, or when such an installation is upgraded or repaired. 6.3.7 fixed CVE-2026-107571 by giving the program folder, Bin and ControlPanel permissions that only administrators may change, but for a folder that is already there it does so only at the end of setup: setup first copies the programs into Bin, which every user may still write, and runs programs from Bin with the administrator's elevated rights, registering the service among them, before that hardening, so that a library another account places in Bin meanwhile is loaded in place of the system's. A handle an account opened on such a folder while it could write it keeps that access after the hardening. The default installation under Program Files, whose folders give ordinary users read and execute only, is not affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
hMailServerto a version that resolves this vulnerability.Fixed in 6.3.8 - Configuration
From an elevated Command Prompt, apply the hMailServer ServiceAccount.md steps titled "Before upgrading an installation at a drive's root" to harden the program folder, Bin, and ControlPanel, then restart Windows before running setup.
hMailServer program folder, Bin, and ControlPanel folder permissions = Only Administrators may change - Compensating control
Until upgrading, install hMailServer under Program Files or in a new folder inside a location that only administrators may change; if the existing installation was previously writable by non-administrators, reinstall into a new folder as described by "Reinstalling into a new folder".