CVE-2026-33765: Pi-hole Web Interface has a Command Injection Vulnerability
Pi-hole Admin Interface is a web interface for managing Pi-hole, a network-level ad and internet tracker blocking application. Versions prior to 6.0 have a critical OS Command Injection vulnerability in the savesettings.php file. The application takes the user-controlled $POST['webtheme'] parameter and concatenates it directly into a system command executed via PHP's exec() function. Since the input is neither sanitized nor validated before being passed to the shell, an attacker can append arbitrary system commands to the intended pihole command. Furthermore, because the command is executed with sudo privileges, the injected commands will run with elevated (likely root) privileges. Version 6.0 patches the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Pi-hole Web Interfaceto a version that resolves this vulnerability.Fixed in 6.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-33765?
CVE-2026-33765 is classified as a critical vulnerability due to its nature as an OS Command Injection vulnerability.
How do I fix CVE-2026-33765?
To fix CVE-2026-33765, upgrade the Pi-hole Web Interface to version 6.0 or later.
Which versions of Pi-hole are affected by CVE-2026-33765?
CVE-2026-33765 affects all versions of the Pi-hole Web Interface prior to version 6.0.
What is the main impact of CVE-2026-33765?
The main impact of CVE-2026-33765 is the potential for remote code execution through command injection.
What component of Pi-hole does CVE-2026-33765 affect?
CVE-2026-33765 specifically affects the savesettings.php file of the Pi-hole Admin Interface.