Time-of-check Time-of-use (TOCTOU) Race Condition in Hestia Control Panel - #VU166269

 

Time-of-check Time-of-use (TOCTOU) Race Condition in Hestia Control Panel - #VU166269

Published: November 16, 2026


Vulnerability identifier: #VU166269
CSH Severity: Medium
CVSS v4: 7.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-367
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Hestia Control Panel

Remediation

Install security update from vendor's website.

Hestia Control Panel - update to 1.10.7

External References

Related Security Bulletins