UNIX symbolic link following in Pi-hole - #VU166836

 

UNIX symbolic link following in Pi-hole - #VU166836

Published: November 18, 2026


Vulnerability identifier: #VU166836
CSH Severity: Low
CVSS v4: 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]
CVE-ID: N/A
CWE-ID: CWE-61
Exploitation vector: Local access
Exploit availability: No public exploit available

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.


Affected software

Pi-hole

Remediation

Install security update from vendor's website.

Pi-hole - update to 6.6

External References

Related Security Bulletins