Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-50130
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 10:30 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 14 Jul 2026, 21:35 UTC

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.

osv:CVE-2026-50130
Complete source record
{
  "id": "666c831071a69d5a725334cebb4bb7196cf76441e8722a2d34de2ecdddb694b7",
  "url": "https://osv.dev/vulnerability/CVE-2026-50130",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`",
    "summary": "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.",
    "evidence": "osv:CVE-2026-50130",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-50130",
      "aliases": [
        "CVE-2026-50130",
        "GHSA-h8w9-qx2v-wrww"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/pi-hole/pi-hole",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2d81552f9f16fb5e12df31069078b43f0e826c3b"
                },
                {
                  "fixed": "f47b8ede5a8e38f9c703202d324a074dbdba4ca9"
                },
                {
                  "fixed": "18002bf7c6bf382fe5861d01321f427019e1be89"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:pi-hole:pi-hole:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.0"
                      },
                      {
                        "fixed": "6.4.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "18002bf7c6bf382fe5861d01321f427019e1be89"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f47b8ede5a8e38f9c703202d324a074dbdba4ca9"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v6.4.3"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.4.2",
            "v6.4.1",
            "v6.4",
            "v6.3",
            "v6.2.2",
            "v6.2.1",
            "v6.2",
            "v6.1.4",
            "v6.1.3",
            "v6.1.2",
            "v6.1",
            "v6.0.6",
            "v6.0.5",
            "v6.0.4",
            "v6.0.3",
            "v6.0.1",
            "v6.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50130.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.389687324Z",
      "provider": "osv",
      "references": [
        "https://github.com/pi-hole/pi-hole/releases/tag/v6.4.3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50130.json",
        "https://github.com/pi-hole/pi-hole/security/advisories/GHSA-h8w9-qx2v-wrww",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-50130",
        "https://github.com/pi-hole/pi-hole/commit/18002bf7c6bf382fe5861d01321f427019e1be89"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-282"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50130.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-50130",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519008,
  "published_at": "2026-07-14T21:35:00.813+00:00"
}