SB2026111829 - Multiple vulnerabilities in Pi-hole



SB2026111829 - Multiple vulnerabilities in Pi-hole

Published: November 18, 2026

Security Bulletin ID SB2026111829
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 5
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Medium 20% Low 80%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 5 vulnerabilities.


1) Link following (CVE-ID: N/A)

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

CVSSv4: 7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a local user to overwrite, truncate, expose, or delete arbitrary files and delete directory trees with root privileges.

The vulnerability exists due to improper symbolic link resolution and trust in user-controlled paths in Pi-hole installation, checkout, and uninstallation scripts when performing file operations as root. A local user can plant symlinks at /etc/pihole/macvendor.db or /etc/pihole/ftlbranch, or modify deletion paths in pihole.toml, while running as the pihole user to trigger these operations when an administrator subsequently runs an affected command.


2) Inclusion of Sensitive Information in Log Files (CVE-ID: N/A)

CWE-ID: CWE-532 - Information Exposure Through Log Files

CVSSv4: 5.6 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to obtain web and app password hashes and the TOTP secret from Pi-hole debug logs.

The vulnerability exists due to missing sensitive-data redaction in advanced/Scripts/piholeDebug.sh when pihole -d logs /etc/pihole/pihole.toml and optionally uploads it to tricorder.pi-hole.net with user approval. A remote attacker can obtain the debug log or its tricorder URL, including from a support thread, to recover hashes for offline password cracking and the secret for generating valid second-factor codes.


3) UNIX symbolic link following (CVE-ID: N/A)

CWE-ID: CWE-61 - UNIX Symbolic Link (Symlink) Following

CVSSv4: 7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a local user to disclose root-readable file contents, overwrite arbitrary files, change their ownership and permissions, and cause a denial of service.

The vulnerability exists due to unchecked symbolic link following in Pi-hole's piholeDebug.sh when an administrator runs pihole -d as root. A local user can plant symbolic links as the pihole account in /etc/pihole or /var/log/pihole to copy sensitive file contents into the readable debug log or redirect debug-log writes and ownership changes to arbitrary files.


4) UNIX symbolic link following (CVE-ID: N/A)

CWE-ID: CWE-61 - UNIX Symbolic Link (Symlink) Following

CVSSv4: 7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a local user to escalate privileges from pihole to root.

The vulnerability exists due to improper symbolic link following in Pi-hole's basic-install.sh when an administrator runs sudo pihole -r or sudo pihole -up. A local user can use existing code execution as pihole to plant symlinks at /etc/pihole/install.log, /etc/pihole/migration_backup_v6, or /etc/pihole/hosts, redirecting privileged writes or ownership changes to attacker-chosen files or directories and enabling modification of content subsequently trusted by root to execute arbitrary code as root.


5) SQL injection (CVE-ID: N/A)

CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

CVSSv4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote privileged user to execute arbitrary SQL statements and operating system commands as the pihole user.

The vulnerability exists due to improper escaping in Pi-hole Core's gravity.sh when substituting files.gravity into an ATTACH DATABASE statement in gravity_copy.sql. A remote privileged user can configure files.gravity through the API with a single quote (') and appended SQL statements invoking edit() and thereby system() to execute arbitrary commands.


Remediation

Install update from vendor's website.