UNIX symbolic link following in Pi-hole - #VU166836
Published: November 18, 2026
Vulnerability details
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.