Description
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.
Published: 2026-07-14
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An unprivileged user running Pi‑hole can replace the /etc/pihole/logrotate file. The pihole‑FTL‑prestart.sh script then changes the file ownership to root:root, and the daily pihole flush cron, running as root, parses the file and executes the specified firstaction shell with uid 0. This chain of events allows the attacker to run arbitrary commands as root, effectively escalating local privileges.

Affected Systems

The vulnerability affects Pi‑hole versions from 6.0 through 6.4.2. The affected product is Pi‑hole by the pi‑hole vendor. Updating to Pi‑hole 6.4.3 or later eliminates the issue.

Risk and Exploitability

The CVSS score of 8.8 marks this flaw as high severity. The EPSS score of less than 1% shows a low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The attack requires local code execution as the pihole user, so the vector is local. Once exploited, an attacker gains root privileges on the host.

Generated by OpenCVE AI on July 31, 2026 at 04:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Pi‑hole to version 6.4.3 or later to apply the vendor patch.
  • Restart the Pi‑hole service and its cron jobs so the new permissions take effect.
  • Change ownership of /etc/pihole/logrotate to root:root and set permissions to 644 to prevent unauthorized writes.

Generated by OpenCVE AI on July 31, 2026 at 04:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 15 Jul 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Pi-hole
Pi-hole pi-hole
Vendors & Products Pi-hole
Pi-hole pi-hole

Wed, 15 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 14 Jul 2026 22:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`
Weaknesses CWE-282
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-16T03:55:27.225Z

Reserved: 2026-06-03T18:49:32.275Z

Link: CVE-2026-50130

cve-icon Vulnrichment

Updated: 2026-07-15T12:43:41.506Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T04:30:03Z

Weaknesses
  • CWE-282

    Improper Ownership Management