CVE-2026-50130: Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`

Published Jul 14, 2026
·
Updated

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

3 affected components
Pi-hole Pi-hole>=6.0<=6.4.2
Pi-hole Pi-hole=6.4.3
Pi-hole Pi-hole>=6.0<6.4.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Pi-hole to a version that resolves this vulnerability.

    Fixed in 6.4.3
  2. 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

Jul 14, 2026
CVE Published
via MITRE·09:35 PM
Data Sourced
via MITRE·09:35 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-50130?

The severity of CVE-2026-50130 is rated high with a score of 8.8.

2

How do I fix CVE-2026-50130?

To fix CVE-2026-50130, update to Pi-hole version 6.4.3 or later.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203