All vulnerabilities

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.

From hestiacp/hestiacp's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Hestia Control PanelServers and applications · github:hestiacp/hestiacp
  • From 1.9.0 up to 1.10.6

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