High severity · published May 11, 2026
CVE-2026-41489
Pi-hole: Local privilege escalation via config-controlled path in root-executed service hooks
8.8
CVSS
0.1%
EPSS
No
On KEV
Description
Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. From 6.0 to before Core 6.4.2 and FTL 6.6.1, two shell scripts executed as root by systemd (pihole-FTL-prestart.sh and pihole-FTL-poststop.sh) read the files.pid path from this config without validation and use it in privileged file operations (install and rm -f). By writing an arbitrary path into files.pid, an attacker with pihole privilege can cause root to delete and then recreate any file on the system outside the ProtectSystem=full-restricted directories, gaining write access to it. On a default Pi-hole installation this yields local privilege escalation to root via SSH authorized keys manipulation. If /root/.ssh/authorized_keys does not exist (default on fresh installs), only ExecStartPre is required. If the file exists, ExecStopPost deletes it first, and the same restart triggers both hooks in sequence. This vulnerability is fixed in Core 6.4.2 and FTL 6.6.1.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.1% · higher than 3% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PI
pi-hole · pi-hole
>= 6.0, < 6.4.2 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-41489
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-41489
github.com
https://github.com/pi-hole/pi-hole/security/advisories/GHSA-6w8x-p785-6pm4
More from pi-hole
7.2
CVE-2020-8816
Pi-Hole AdminLTE Remote Code Execution Vulnerability
8.8
CVE-2026-50130
Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`
8.8
CVE-2025-34087
Pi-Hole AdminLTE Whitelist (now 'Web Allowlist') Remote Command Execution
8.8
CVE-2024-34361
Pi-hole Blind Server-Side Request Forgery (SSRF) vulnerability can lead to Remote Code Execution (RCE)
8.8
CVE-2021-32706
(Authenticated) Remote Code Execution Possible in Web Interface 5.5
