Time-of-check Time-of-use (TOCTOU) Race Condition in Hestia Control Panel - #VU166269
Published: November 16, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary commands as operating-system root and compromise other tenants and services.
The vulnerability exists due to a time-of-check time-of-use race condition in HestiaCP's v-add-mail-domain script when privileged chmod and chown operations re-resolve a previously checked mail pathname. A remote user can use panel cron and mail-domain privileges on an Exim-enabled installation to replace the mail directory with a symbolic link after validation, redirect ownership changes to /etc/pam.d/su, and alter its policy to obtain root access.