CVE-2026-119335

Pi-hole: Local privilege escalation from `pihole` user to root via CVE-2026-41489 fix bypass

Published Oct 30, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. Prior to 6.5, advanced/Scripts/utils.sh getFTLPID() attempts to validate the pihole-owned /run/pihole-FTL.pid file with expr "${FTL_PID}" : "[^[:digit:]]", but this rejects only values whose first character is not a digit. An attacker with code execution as the pihole user can write a digit-prefixed arithmetic expression to the pihole-owned PID file. Root-run pihole subcommands then evaluate [[ "$pid" -eq "-1" ]], causing Bash to recursively evaluate array subscripts and execute command substitution as root. This bypasses the content-validation portion of the CVE-2026-41489 remediation while leaving its hardcoded PID-file path protection intact. This issue is fixed in version 6.5.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Pi‑hole to version 6.5 or newer
  • Restrict the `pihole` user to a restricted shell or remove its ability to execute arbitrary commands
  • Restrict write access to /run/pihole-FTL.pid and ensure only the root‑owned process can modify it

Generated by OpenCVE AI on October 30, 2026 at 21:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Pi-hole
Pi-hole pi-hole
Vendors & Products Pi-hole
Pi-hole pi-hole
Type Values Removed Values Added
Description Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. Prior to 6.5, advanced/Scripts/utils.sh getFTLPID() attempts to validate the pihole-owned /run/pihole-FTL.pid file with expr "${FTL_PID}" : "[^[:digit:]]", but this rejects only values whose first character is not a digit. An attacker with code execution as the pihole user can write a digit-prefixed arithmetic expression to the pihole-owned PID file. Root-run pihole subcommands then evaluate [[ "$pid" -eq "-1" ]], causing Bash to recursively evaluate array subscripts and execute command substitution as root. This bypasses the content-validation portion of the CVE-2026-41489 remediation while leaving its hardcoded PID-file path protection intact. This issue is fixed in version 6.5.
Title Pi-hole: Local privilege escalation from `pihole` user to root via CVE-2026-41489 fix bypass
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 5, 2026, 2:38 AM
Reserved
Oct 29, 2026, 8:44 PM
Status
Awaiting Analysis
Published
Oct 30, 2026, 8:17 PM
Modified
Nov 5, 2026, 3:17 AM