CVE-2026-41489: Pi-hole - Privilege Escalation
- Cve: CVE-2026-41489
- Name: Pi-hole - Privilege Escalation
- 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.
- Impact: Attackers with pihole privilege can gain root access by manipulating files, leading to full system compromise.
- Remediation: Update to Core 6.4.2 and FTL 6.6.1 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation, file_system_write
- Requirement type: logged_in
- Requirements: Attacker needs pihole privilege on the system.
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.00132
- Epss percentile: 0.02768
- Assignee: [email protected]
- Published at: 2026-05-11T21:19:00Z
- Age in days: 197
- Modified at: 2026-06-17T10:46:47Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-41489
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-15 | External Control of System or Configuration Setting |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/pi-hole/pi-hole/security/advisories/GHSA-6w8x-p785-6pm4 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pi-hole:pi-hole | >= 6.0, < 6.4.2 | no | cna_alias_text | /v1/products/pi-hole/pi-hole |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pi-hole/pi-hole | security_advisory | yes | /v1/repositories/pi-hole/pi-hole |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 9405
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports