CVE-2026-119335
7.8 HIGHpublic exploit availablePublished 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.
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
- https://github.com/pi-hole/pi-hole/commit/555dd4d8b3699327fbba482bb73cce5f53979bd1
- https://github.com/pi-hole/pi-hole/pull/6719
- https://github.com/pi-hole/pi-hole/releases/tag/v6.5
- https://github.com/pi-hole/pi-hole/security/advisories/GHSA-cf36-4hhc-8398
- https://github.com/pi-hole/pi-hole/security/advisories/GHSA-cf36-4hhc-8398
All references
- https://github.com/pi-hole/pi-hole/commit/555dd4d8b3699327fbba482bb73cce5f53979bd1
- https://github.com/pi-hole/pi-hole/pull/6719
- https://github.com/pi-hole/pi-hole/releases/tag/v6.5
- https://github.com/pi-hole/pi-hole/security/advisories/GHSA-cf36-4hhc-8398
- https://github.com/pi-hole/pi-hole/security/advisories/GHSA-cf36-4hhc-8398
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-110908PoC
- HIGHCVE-2026-113722PoC
- HIGHCVE-2026-12405
- CRITICALCVE-2026-54143PoC
- HIGHCVE-2026-54161PoC
- CRITICALCVE-2020-37282PoC
- CRITICALCVE-2024-4457PoC
- CRITICALCVE-2025-31704
Related by shared AI tags and CWE weakness class. Browse the full archive.