8.8
HIGH CVSS 3.1
CVE-2026-41489
Pi-hole: Local privilege escalation via config-controlled path in root-executed service hooks
Description

Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. From 6.0 to before Core 6.4.2 and FTL 6.6.1, two shell scripts executed as root by systemd (pihole-FTL-prestart.sh and pihole-FTL-poststop.sh) read the files.pid path from this config without validation and use it in privileged file operations (install and rm -f). By writing an arbitrary path into files.pid, an attacker with pihole privilege can cause root to delete and then recreate any file on the system outside the ProtectSystem=full-restricted directories, gaining write access to it. On a default Pi-hole installation this yields local privilege escalation to root via SSH authorized keys manipulation. If /root/.ssh/authorized_keys does not exist (default on fresh installs), only ExecStartPre is required. If the file exists, ExecStopPost deletes it first, and the same restart triggers both hooks in sequence. This vulnerability is fixed in Core 6.4.2 and FTL 6.6.1.

INFO

Published Date :

May 11, 2026, 9:19 p.m.

Last Modified :

May 11, 2026, 9:19 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2026-41489 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
Update Pi-hole Core and FTL to address a path traversal vulnerability allowing local privilege escalation.
  • Update Pi-hole Core to version 6.4.2 or later.
  • Update Pi-hole FTL to version 6.6.1 or later.
  • Verify installation integrity after updates.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-41489.

URL Resource
https://github.com/pi-hole/pi-hole/security/advisories/GHSA-6w8x-p785-6pm4
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-41489 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-41489 weaknesses.

CAPEC-13: Subverting Environment Variable Values Subverting Environment Variable Values CAPEC-69: Target Programs with Elevated Privileges Target Programs with Elevated Privileges CAPEC-76: Manipulating Web Input to File System Calls Manipulating Web Input to File System Calls CAPEC-77: Manipulating User-Controlled Variables Manipulating User-Controlled Variables CAPEC-146: XML Schema Poisoning XML Schema Poisoning CAPEC-176: Configuration/Environment Manipulation Configuration/Environment Manipulation CAPEC-203: Manipulate Registry Information Manipulate Registry Information CAPEC-270: Modification of Registry Run Keys Modification of Registry Run Keys CAPEC-271: Schema Poisoning Schema Poisoning CAPEC-579: Replace Winlogon Helper DLL Replace Winlogon Helper DLL CAPEC-58: Restful Privilege Elevation Restful Privilege Elevation CAPEC-122: Privilege Abuse Privilege Abuse CAPEC-233: Privilege Escalation Privilege Escalation CAPEC-1: Accessing Functionality Not Properly Constrained by ACLs Accessing Functionality Not Properly Constrained by ACLs CAPEC-17: Using Malicious Files Using Malicious Files CAPEC-60: Reusing Session IDs (aka Session Replay) Reusing Session IDs (aka Session Replay) CAPEC-61: Session Fixation Session Fixation CAPEC-62: Cross Site Request Forgery Cross Site Request Forgery CAPEC-122: Privilege Abuse Privilege Abuse CAPEC-127: Directory Indexing Directory Indexing CAPEC-180: Exploiting Incorrectly Configured Access Control Security Levels Exploiting Incorrectly Configured Access Control Security Levels CAPEC-206: Signing Malicious Code Signing Malicious Code CAPEC-234: Hijacking a privileged process Hijacking a privileged process CAPEC-642: Replace Binaries Replace Binaries

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-41489 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-41489 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    May. 11, 2026

    Action Type Old Value New Value
    Added Description Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. From 6.0 to before Core 6.4.2 and FTL 6.6.1, two shell scripts executed as root by systemd (pihole-FTL-prestart.sh and pihole-FTL-poststop.sh) read the files.pid path from this config without validation and use it in privileged file operations (install and rm -f). By writing an arbitrary path into files.pid, an attacker with pihole privilege can cause root to delete and then recreate any file on the system outside the ProtectSystem=full-restricted directories, gaining write access to it. On a default Pi-hole installation this yields local privilege escalation to root via SSH authorized keys manipulation. If /root/.ssh/authorized_keys does not exist (default on fresh installs), only ExecStartPre is required. If the file exists, ExecStopPost deletes it first, and the same restart triggers both hooks in sequence. This vulnerability is fixed in Core 6.4.2 and FTL 6.6.1.
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
    Added CWE CWE-15
    Added CWE CWE-269
    Added CWE CWE-732
    Added Reference https://github.com/pi-hole/pi-hole/security/advisories/GHSA-6w8x-p785-6pm4
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.