RCE in Pi-Hole Web
CVE-2026-33765
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.
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 0.011 (63.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Pi-hole Web — versions < 6.0
- Pi-hole Web_interface
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-33765?
- CVE-2026-33765 is a critical-severity vulnerability in Pi-Hole Web, classified under OS Command Injection. CVSS score: 9.8/10. Published 2026-03-27.
- How severe is CVE-2026-33765?
- Critical severity. CVSS v3 base score is 9.8 out of 10.