{"id":"CVE-2026-50130","state":"PUBLISHED","title":"Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`","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.","publishedAt":"2026-07-14T21:35:00.813Z","updatedAt":"2026-07-16T03:55:27.225Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["pi-hole pi-hole"],"affected":[{"vendor":"pi-hole","product":"pi-hole","versions":[{"version":">= 6.0.0, < 6.4.3","status":"affected"}]}],"references":["https://github.com/pi-hole/pi-hole/security/advisories/GHSA-h8w9-qx2v-wrww","https://github.com/pi-hole/pi-hole/commit/18002bf7c6bf382fe5861d01321f427019e1be89","https://github.com/pi-hole/pi-hole/releases/tag/v6.4.3"],"weaknesses":["CWE-282"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/50xxx/CVE-2026-50130.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-50130","state":"PUBLISHED","datePublished":"2026-07-14T21:35:00.813Z","dateUpdated":"2026-07-16T03:55:27.225Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-03T18:49:32.275Z"},"containers":{"cna":{"title":"Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`","descriptions":[{"lang":"en","value":"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":[{"vendor":"pi-hole","product":"pi-hole","versions":[{"version":">= 6.0.0, < 6.4.3","status":"affected"}]}],"references":[{"url":"https://github.com/pi-hole/pi-hole/security/advisories/GHSA-h8w9-qx2v-wrww","name":"https://github.com/pi-hole/pi-hole/security/advisories/GHSA-h8w9-qx2v-wrww","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pi-hole/pi-hole/commit/18002bf7c6bf382fe5861d01321f427019e1be89","name":"https://github.com/pi-hole/pi-hole/commit/18002bf7c6bf382fe5861d01321f427019e1be89","tags":["x_refsource_MISC"]},{"url":"https://github.com/pi-hole/pi-hole/releases/tag/v6.4.3","name":"https://github.com/pi-hole/pi-hole/releases/tag/v6.4.3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-282","lang":"en","description":"CWE-282: Improper Ownership Management","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-14T21:35:00.813Z"},"source":{"advisory":"GHSA-h8w9-qx2v-wrww","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/pi-hole/pi-hole/security/advisories/GHSA-h8w9-qx2v-wrww","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-15T00:00:00+00:00","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-50130"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-16T03:55:27.225Z"}}]}}}