External Control of File Name or Path in Pi-hole - #VU166829
Published: November 18, 2026
Vulnerability details
The vulnerability allows a local user to execute arbitrary code as root or truncate and change permissions on root-owned files.
The vulnerability exists due to external control of file paths in Pi-hole's gravity.sh and piholeLogFlush.sh when processing pihole-owned configuration as root during administrator maintenance. A local user can set files.gravity to "/etc/cron.d/gravity.db" and await an administrator's sudo pihole -g invocation to gain directory ownership and install a root cron job, or redirect files.log.* paths before sudo pihole flush to truncate root-owned files and change their permissions.