CVE-2026-33765: Pi-hole Web Interface has a Command Injection Vulnerability

Published Mar 27, 2026
·
Updated

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

2 affected components
Pi-hole Pi-hole Web Interface<6.0
Pi-hole Web interface<6.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Pi-hole Web Interface to a version that resolves this vulnerability.

    Fixed in 6.0

Event History

Mar 27, 2026
CVE Published
via MITRE·07:46 PM
Data Sourced
via MITRE·07:46 PM
DescriptionWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

How do I fix CVE-2026-33765?

To fix CVE-2026-33765, upgrade the Pi-hole Web Interface to version 6.0 or later.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203