All vulnerabilities

Servers and applications

GHSA-pfj7-fhx8-q4qx

Symlink following in v-add-mail-account allows any panel user to take ownership of arbitrary root files (/etc/shadow -> root)

Severity
High 8.5
Published
14 Nov 2026
Last changed
14 Nov 2026
Added to UpHeron
14 Nov 2026
Fixed in
1.10.7
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

A low-privilege HestiaCP panel user (ROLE='user', no admin flag) can escalate to root by creating a symbolic link inside their own mailbox directory and then creating a mail account with the same name.

v-add-mail-account runs as root via the passwordless sudo rule (hestiaweb ALL=NOPASSWD:/usr/local/hestia/bin/*) and calls mkdir / chown / chmod on a path the user fully controls. There is no symlink check, no chown --no-dereference, and the mkdir error is ignored. GNU chown/chmod dereference symlinks, so the target file or directory is modified - for example /etc/shadow becomes owned by the attacker.

The escalation is deterministic: no race condition, no admin interaction, no user interaction.

  • hestia web panel (PHP-FPM, hestiaweb user) and sudo rule hestiaweb ALL=NOPASSWD:/usr/local/hestia/bin/*
  • exim4 / dovecot mail stack (mailbox directories under ~/mail//)
  • GNU coreutils mkdir, chown, chmod
From hestiacp/hestiacp's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Hestia Control PanelServers and applications · github:hestiacp/hestiacp
  • Every version before 1.10.7

About Hestia Control Panel

Hestia Control Panel | A lightweight and powerful control panel for the modern web.

From its GitHub repository.
GitHub stars
4,578GitHub, 15 Nov 2026
Forks
964GitHub, 15 Nov 2026
Latest release
1.10.7GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
License
GPL-3.0GitHub
First published on GitHub
7 Nov 2018GitHub

References