External Control of File Name or Path in Pi-hole - #VU166829

 

External Control of File Name or Path in Pi-hole - #VU166829

Published: November 18, 2026


Vulnerability identifier: #VU166829
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-73
Exploitation vector: Local access
Exploit availability: No public exploit available

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.


Affected software

Pi-hole

Remediation

Install security update from vendor's website.

Pi-hole - update to 6.5

External References

Related Security Bulletins