OS Command Injection in Pi-hole - CVE-2026-119335

 

OS Command Injection in Pi-hole - CVE-2026-119335

Published: November 18, 2026


Vulnerability identifier: #VU166830
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-119335
CWE-ID: CWE-78
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges and execute arbitrary commands as root.

The vulnerability exists due to improper neutralization of command substitutions in Pi-hole's getFTLPID() and command wrapper when PID-file values beginning with a digit pass validation and undergo Bash arithmetic evaluation. A local user can write 1+a[$(id > /tmp/PWNED-ROOT-PROOF)] to /run/pihole-FTL.pid as the pihole user and wait for a root-run command such as pihole reloaddns to execute commands as root.


Affected software

Pi-hole

How to mitigate CVE-2026-119335

Install security update from vendor's website.

Pi-hole - update to 6.5

External References

Related Security Bulletins