CVE-2026-50130: Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`
Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. From 6.0 to 6.4.2, a user with code execution as the unprivileged pihole user can escalate to root by replacing /etc/pihole/logrotate. The replacement is laundered to root:root ownership by pihole-FTL-prestart.sh and then parsed as root by the daily pihole flush cron, executing firstaction shell as uid 0. This issue is fixed in version 6.4.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Pi-holeto a version that resolves this vulnerability.Fixed in 6.4.3 - Operational
After upgrading to Pi-hole 6.4.3, review/restore /etc/pihole/logrotate to ensure it was not modified by an attacker using the unprivileged pihole user escalation path.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-50130?
The severity of CVE-2026-50130 is rated high with a score of 8.8.
How do I fix CVE-2026-50130?
To fix CVE-2026-50130, update to Pi-hole version 6.4.3 or later.
What versions of Pi-hole are affected by CVE-2026-50130?
CVE-2026-50130 affects Pi-hole versions from 6.0 to 6.4.2.
What type of vulnerability is CVE-2026-50130?
CVE-2026-50130 is a local privilege escalation vulnerability that allows an unprivileged user to escalate to root.
How does CVE-2026-50130 exploit the system?
CVE-2026-50130 exploits the system by allowing a user with code execution as the pihole user to replace the /etc/pihole/logrotate file.