Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA pi-hole (pi-hole) Fixed in 6.4.3
Timeline
- 2026-10-02 Threatist record created from CVE-2026-50130
References
More Pi-hole vulnerabilities
- TI-2020-07073 Pi-hole Web v4.3.2 (aka AdminLTE) allows Remote Code Execution by privileged dashboard… KEVCVSS 3.1HIGH 7.2
- TI-2020-08981 The Gravity updater in Pi-hole through 4.4 allows an authenticated adversary to upload… CVSS 3.1HIGH 8.8
- TI-2024-22701 Pi-hole Blind Server-Side Request Forgery (SSRF) vulnerability can lead to Remote Code Execution (RCE) CVSS 3.1HIGH 8.8
- TI-2021-12374 (Authenticated) Remote Code Execution Possible in Web Interface 5.5 CVSS 3.1HIGH 8.8
- TI-2024-18806 Pihole Authenticated Arbitrary File Read with root privileges CVSS 3.1HIGH 7.6
- TI-2025-24251 Pi-Hole AdminLTE Whitelist (now 'Web Allowlist') Remote Command Execution CVSS 4.0CRITICAL 9.0
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences