All vulnerabilities

Servers and applications

GHSA-vxpc-8vm2-8rv3

API access-key secret and command arguments (user passwords) are logged in clear text to auth.log/journal by sudo

Severity
Medium
Published
14 Nov 2026
Last changed
14 Nov 2026
Added to UpHeron
14 Nov 2026
Fixed in
1.10.7
Weakness
Sensitive information in log files (CWE-532)
Sources
Project advisories (GitHub)

Description

When a client calls the HTTP API with an access key (access_key + secret_key), web/api/index.php authenticates it with:

and then runs the requested command with every argN on the sudo command line.

sudo's default policy logs the full command line of every allowed command through syslog. On Debian/Ubuntu this goes to /var/log/auth.log (mode 640, group adm) and to the systemd journal. As a result:

  • the secret key of the access key is logged in clear text on every API call;
  • passwords passed as arguments are logged in clear text, e.g. arg2 of v-add-user. This applies to any v-* command that takes a password argument and is called through the API (v-change-user-password, v-add-database, v-add-mail-account, v-change-mail-account-password, ...).

The web UI already avoids this: it writes passwords/hashes to a mktemp file and passes the /tmp/... path, which is_password_valid() / is_hash_valid() in func/main.sh read (same pattern as v-check-user-hash).

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

Workarounds

We put the sudoers snippet above in a separate drop-in (/etc/sudoers.d/zz-hestia-nolog, root 0440, validated with visudo -c). After that, allowed runs of these two commands no longer appear in auth.log or the journal, while denied runs and every other command are still logged. Existing log lines must be purged, and the exposed keys and passwords rotated.

Workarounds as given by hestiacp/hestiacp's security advisory.

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