All vulnerabilities

Servers and applications

GHSA-wp7p-qfxc-cg88

Local Privilege Escalation (to root) via Symlink TOCTOU in v-add-user-ssh-key and v-add-user-sftp-key

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

Description

Any authenticated HestiaCP panel user can escalate to root. bin/v-add-user-ssh-key and bin/v-add-user-sftp-key run as root via sudo and validate ~/.ssh/authorized_keys once with readlink -f, then use the same path after spawning ssh-keygen/sed/at. Because ~/.ssh belongs to the user, the user can replace authorized_keys with a symlink inside that window: v-add-user-ssh-key then appends an attacker-controlled SSH key to an arbitrary file (>>), and v-add-user-sftp-key additionally calls chown ${user}: without --no-dereference, handing ownership of an arbitrary root file to the attacker. Either primitive yields root (key in /root/.ssh/authorized_keys, or /etc/shadow owned by the tenant). The race is reliably winnable: 28-37% per attempt, ~15 ms window. CVSS 8.8 (High), CWE-59 / CWE-367.

  • sudo-invoked Hestia CLI backend: bin/v-add-user-ssh-key, bin/v-add-user-sftp-key
  • Panel endpoint web/add/key/index.php:67 -> /usr/bin/sudo /usr/local/hestia/bin/v-add-user-ssh-key
  • FileGator File…
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