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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 11% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-14T21:35:00.813Z
- Modified: 2026-07-30T14:31:09.610Z
- Weaknesses: CWE-282
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pi-hole pi-hole: >= 6.0.0, < 6.4.3; from 6.0 before 6.4.3

## References

- <https://github.com/pi-hole/pi-hole/security/advisories/GHSA-h8w9-qx2v-wrww> (exploit, mitigation, vendor-advisory)
- <https://github.com/pi-hole/pi-hole/commit/18002bf7c6bf382fe5861d01321f427019e1be89> (patch)
- <https://github.com/pi-hole/pi-hole/releases/tag/v6.4.3> (product, release-notes)

## Sources

- CVE List: [CVE-2026-50130](https://www.cve.org/CVERecord?id=CVE-2026-50130), CVE Terms of Use, modified 2026-07-16
- NVD: [CVE-2026-50130](https://nvd.nist.gov/vuln/detail/CVE-2026-50130), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2026-50130 · Whole record: https://cve.day/CVE-2026-50130.json · Rebuilt by cve.day 2026-11-25T22:59:28.248Z
