← Back to search

CVE-2026-119335

7.8 HIGHpublic exploit available

Published 2026-10-30 · Updated 2026-11-05

AI risk analysis

Summary
A command injection flaw in Pi-hole's FTL PID file validation allows an attacker with pihole-user privileges to inject arbitrary Bash expressions into a root-owned script, triggering recursive evaluation and remote code execution as root via crafted arithmetic expressions in the PID file.
Exploitability
Requires prior compromise of the pihole user account or code execution under that user context; local access only (AV:L).
Blast radius
Full system compromise with complete confidentiality, integrity, and availability impact due to root-level command execution.
Detection
Monitor /var/log/pihole/FTL.log and system logs for unexpected Bash arithmetic expression evaluation (e.g., lines containing [[ "$pid" -eq "-1" ]] or recursive array subscript patterns) during pihole service operations; also watch for writes to /run/pihole-FTL.pid by non-root processes.
Prioritized remediation
Upgrade to Pi-hole version 6.5 or later, which fixes the vulnerable getFTLPID() function and removes the unsafe PID file evaluation logic.
rcecommand-injectionprivilege-escalationpi-holepid-file-tampering

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-78

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.