Servers and applications
GHSA-4435-q39q-3vp9
Symlinked ~/backup makes the restic config dump delete and write files as root
- Severity
- High 7.1
- Published
- 14 Nov 2026
- Last changed
- 14 Nov 2026
- Added to UpHeron
- 14 Nov 2026
- Weakness
- Link following (CWE-59)
- Attack
- Needs local access · Needs a user account · No user action needed
- Attacker can
- Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H- Sources
- Project advisories (GitHub)
Description
bin/v-backup-user-config runs as root at the start of every restic (incremental) backup and clears and recreates /home/$user/backup/ by path. A user who owns their home directory can replace ~/backup with a symlink to any directory. Root then deletes the contents of that directory and writes the configuration dump into it.
bin/v-backup-user-config, lines 49-53:
- Because of the trailing slash, rm -fr resolves a symlinked ~/backup and recursively deletes the contents of the target directory. The link itself survives.
- mkdir -p accepts the existing symlink to a directory. Every later write in the script (cp -r $USER_DATA/..., grep "^$user:" /etc/shadow > $tmpdir/pam/shadow, mkdir -p, database dumps, ...) lands in the target directory as root.
The user can trigger this at any time: the panel's incremental backup button (web/schedule/backup/incremental/) runs v-schedule-user-backup-restic, which queues v-backup-user-restic.
Affected software
| Software | Affected versions |
|---|---|
Hestia Control PanelServers and applications · github:hestiacp/hestiacp |
|
About Hestia Control Panel
Hestia Control Panel | A lightweight and powerful control panel for the modern web.
- 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
Vulnerabilities in Hestia Control Panel
- In our list
- 55
- Published in the last 12 months
- 38
- Critical, last 12 months
- 11
- High, last 12 months
- 13
- Known exploited
- 0
- GHSA-4qc9-p3qr-434qPassword reset failures & 2FA reset failures are not loggedLow 19 Nov 2026
- GHSA-76m3-mq7g-jc97Open redirect in /login/ via the edit_link parameter (protocol-relative URL)Low 19 Nov 2026
- GHSA-784f-pcj8-rqxpAuthenticated user can download another user's backup via username-prefix IDORMedium 6.5 19 Nov 2026
- GHSA-wp7p-qfxc-cg88Local Privilege Escalation (to root) via Symlink TOCTOU in v-add-user-ssh-key and v-add-user-sftp-keyHigh 8.8 14 Nov 2026
- GHSA-pfj7-fhx8-q4qxSymlink following in v-add-mail-account allows any panel user to take ownership of arbitrary root files (/etc/shadow -> root)High 8.5 14 Nov 2026
- GHSA-chw8-phjg-wmq7API user check skipped for v-quick-install-appMedium 5.0 14 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-4435-q39q-3vp9
- github.com https://github.com/hestiacp/hestiacp/security/advisories/GHSA-4435-q39q-3vp9