All vulnerabilities

Servers and applications

GHSA-2xw3-7h62-v4gf

Authenticated Low-Privilege User to Root Command Execution via Unescaped Restic Restore Queue Write

Severity
Critical 9.9
Published
30 Jul 2026
Last changed
30 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.9.8
Weakness
OS command injection (CWE-78)Argument injection (CWE-88)
Attack
Over the network · 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:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

A non-admin HestiaCP panel user can inject shell commands through the Restic incremental-restore scheduler. web/schedule/restore/incremental/index.php only quotes each GET parameter for its own exec() call. bin/v-schedule-user-restore-restic then re-embeds the parsed $snapshot (always) and $value (when $object is web/dns/mail/db) into $HESTIA/data/queue/backup.pipe unescaped, which the root-privileged hestiaweb cron job executes.

Entry point: web/schedule/restore/incremental/index.php. The handler has no admin gate. A logged-in panel user can reach it with their own session CSRF token and same-origin Referer.

quoteshellarg() protects this first shell hop only. After shell parsing, v-schedule-user-restore-restic receives the original snapshot, type, and object bytes as argv (as $snapshot, $object, and $value respectively).

Sink: bin/v-schedule-user-restore-restic writes those argv values into a new shell command line without escaping single quotes:

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 before 1.9.8

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