Technical impact
Pi‑hole is a DNS sinkhole that runs a local service called FTL. In versions prior to 6.5, the script advanced/Scripts/utils.sh validates the /run/pihole-FTL.pid file with a regular expression that only rejects values whose first character is not a digit. An attacker who can execute code as the local pihole user can write a digit‑prefixed arithmetic expression to that PID file. When pihole subcommands later evaluate [[ "$pid" -eq "-1" ]], Bash recursively evaluates array subscripts and performs command substitution, which runs as root. This bypasses the earlier fix for CVE‑2026‑41489 but still relies on the hardcoded PID‑file path protection. The flaw enables arbitrary command execution as root, elevating local privileged attackers to full system control. It is an instance of OS Command Injection (CWE‑78).
Affected Systems
Pi‑hole installations running any version earlier than 6.5, especially those built from the open‑source repository pi‑hole:pi‑hole. The vulnerable component is the advanced/Scripts/utils.sh script that handles the FTL process ID file. Versions 6.5 and later contain the fix and are not vulnerable.
Risk and Exploitability
The CVSS score of 7.8 categorises this vulnerability as High severity, yet the EPSS score is unavailable, indicating no known public exploitation data. The flaw is not listed in the CISA KEV catalog. Exploitation requires local code execution as the pihole user; once that privilege is achieved, the attacker gains root level access, allowing full compromise of the host.