Skip to main content

Pi-hole CVE-2026-50130

| EUVDEUVD-2026-44529 HIGH
Improper Ownership Management (CWE-282)
2026-07-14 security-advisories@github.com
8.8
CVSS 3.1 · Vendor: github
Share

Severity by source

Vendor (github) PRIMARY
8.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI
8.8 HIGH

Attacker needs local low-priv pihole-user code execution (AV:L/PR:L); reliable escalation crosses a privilege boundary to root (S:C) yielding full C/I/A impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Source Code Evidence Fetched
Jul 22, 2026 - 10:35 vuln.today
Analysis Generated
Jul 22, 2026 - 10:35 vuln.today
Patch available
Jul 14, 2026 - 23:20 EUVD
CVE Published
Jul 14, 2026 - 22:17 cve.org
HIGH 8.8

DescriptionCVE.org

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.

AnalysisAI

Local privilege escalation in Pi-hole 6.0.0 through 6.4.2 lets an attacker who already has code execution as the unprivileged pihole user become root by overwriting the /etc/pihole/logrotate configuration file. Because pihole-FTL-prestart.sh chowns that file to root:root and the daily flush cron then parses it as root via logrotate, a malicious firstaction shell directive runs as uid 0. This is a CWE-282 improper ownership issue with total technical impact; SSVC lists exploitation as proof-of-concept and it is fixed in 6.4.3, with no CISA KEV listing and a low EPSS of 0.22%.

Technical ContextAI

The flaw lives in Pi-hole's log-management plumbing. logrotate is a standard Linux utility that rotates and compresses log files; its config files support pre/post action hooks (firstaction/lastaction/prerotate/postrotate) whose contents are executed as shell by whatever user invokes logrotate. Pi-hole historically stored its logrotate config at /etc/pihole/logrotate - a directory writable in practice by the pihole service account - rather than the root-owned /etc/logrotate.d/. The root cause (CWE-282, Improper Ownership Management) is that pihole-FTL-prestart.sh explicitly ran chown root:root /etc/pihole/logrotate, laundering an attacker-controlled file into root ownership, after which the @reboot and daily cron entries (which run as root per pihole.cron) invoked logrotate --force /etc/pihole/logrotate, executing any embedded firstaction shell as root. The fix commit (18002bf) relocates the config to root-controlled /etc/logrotate.d/pihole across piholeDebug.sh, piholeLogFlush.sh, pihole.cron, and basic-install.sh, and removes the dangerous chown from the prestart script entirely.

RemediationAI

Vendor-released patch: upgrade Pi-hole to 6.4.3 or later, which moves the logrotate configuration to the root-owned /etc/logrotate.d/pihole and removes the vulnerable chown root:root /etc/pihole/logrotate from pihole-FTL-prestart.sh (see the release at https://github.com/pi-hole/pi-hole/releases/tag/v6.4.3 and advisory https://github.com/pi-hole/pi-hole/security/advisories/GHSA-h8w9-qx2v-wrww). If you cannot upgrade immediately, the concrete compensating controls are: remove or lock down /etc/pihole/logrotate so the pihole user cannot write it (e.g. set the file immutable with chattr +i and root ownership), which prevents the swap but will break Pi-hole's own logrotate updates on the next install/update; and temporarily disable the daily flush/@reboot logrotate cron entry in the pihole cron file so the attacker-controlled config is never parsed as root, at the cost of unrotated, growing Pi-hole logs. Both are stopgaps - patching to 6.4.3 is the durable fix. Since exploitation requires an existing pihole-user foothold, also investigate and close whatever gave that foothold.

CVE-2025-34087 HIGH POC
8.8 Jul 03

Pi-hole versions up to 3.3 contain an authenticated command injection via the domain allowlist functionality. When addin

CVE-2020-11108 HIGH POC
8.8 May 11

The Gravity updater in Pi-hole through 4.4 allows an authenticated adversary to upload arbitrary files. Rated high sever

CVE-2021-29449 MEDIUM POC
6.3 Apr 14

Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Rated medium severity (CVSS 6.

CVE-2020-8816 HIGH POC
7.2 May 29

Pi-hole Web v4.3.2 (aka AdminLTE) allows Remote Code Execution by privileged dashboard users via a crafted DHCP static l

CVE-2024-34361 HIGH POC
8.8 Jul 05

Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. Rated

CVE-2021-32706 HIGH POC
8.8 Aug 04

Pi-hole's Web interface provides a central location to manage a Pi-hole instance and review performance statistics. Rate

CVE-2021-29448 HIGH POC
8.8 Apr 15

Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Rated high severity (CVSS 8.8)

CVE-2020-14162 HIGH POC
7.8 Jul 30

An issue was discovered in Pi-Hole through 5.0. Rated high severity (CVSS 7.8), this vulnerability is low attack complex

CVE-2020-12620 HIGH POC
7.8 Jul 30

Pi-hole 4.4 allows a user able to write to /etc/pihole/dns-servers.conf to escalate privileges through command injection

CVE-2024-44069 HIGH POC
7.5 Aug 19

Pi-hole before 6 allows unauthenticated admin/api.php?setTempUnit= calls to change the temperature units of the web dash

CVE-2024-28247 MEDIUM POC
6.5 Mar 27

The Pi-hole is a DNS sinkhole that protects your devices from unwanted content without installing any client-side softwa

CVE-2026-41489 HIGH
8.8 May 11

Local privilege escalation in Pi-hole (Core 6.0 through before 6.4.2, FTL through before 6.6.1) lets a user with pihole

Share

CVE-2026-50130 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy