CVE-2025-34087: Authenticated command injection in Pi-hole allowlist management
- Vendor
- Pi-Hole
CVE-2025-34087 is an authenticated OS command injection vulnerability affecting Pi-hole versions up to 3.3 in the legacy AdminLTE web interface. When a user adds a domain to the allowlist through the web UI, the supplied domain parameter is not properly sanitized before being incorporated into an operating system command. An authenticated attacker can append shell metacharacters or additional commands to the domain string, causing arbitrary OS commands to be executed on the underlying host. The injected commands run with the privileges of the Pi-hole service user rather than full root, but still provide direct command execution on the appliance or host system. The issue was present in the legacy AdminLTE interface and was patched in later versions.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation gives an authenticated attacker arbitrary command execution on the Pi-hole host in the security context of the Pi-hole service user. This can enable compromise of the Pi-hole instance, modification of DNS filtering configuration, access to locally available data and configuration files readable by that user, installation of persistence mechanisms available within that privilege boundary, and potential follow-on privilege escalation depending on host configuration. At minimum, the flaw can be used to alter service behavior or disrupt DNS filtering operations.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to the Pi-hole administrative web interface to trusted administrators only, ideally via network ACLs, VPN, or reverse-proxy access controls. Disable or avoid use of the legacy AdminLTE interface if it is still exposed. Enforce strong authentication for admin accounts and monitor allowlist modification activity for suspicious entries containing shell metacharacters or malformed domain values. Where possible, harden the host so the Pi-hole service user has minimal privileges and limited ability to execute or affect other system components.
Remediation
Patch, then assume compromise.
Upgrade Pi-hole to a version in which the legacy AdminLTE allowlist handling has been patched. If an immediate upgrade is not possible, remove or disable the vulnerable legacy AdminLTE interface where feasible and ensure the application uses corrected input handling for allowlist domain submission. Review the code path that processes allowlist additions to ensure domain input is strictly validated against expected hostname syntax and never passed unsafely to shell commands.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-34087 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2025-34087 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-34087?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2025-34087, the earliest disclosed Apr 15, 2018.
- Is there a patch for CVE-2025-34087?
- Upgrade Pi-hole to a version in which the legacy AdminLTE allowlist handling has been patched. If an immediate upgrade is not possible, remove or disable the vulnerable legacy AdminLTE interface where feasible and ensure the application uses corrected input handling for allowlist domain submission.
- What products are affected by CVE-2025-34087?
- Pi-Hole and Pi-Hole Web Interface.
- How severe is CVE-2025-34087?
- CVE-2025-34087 has a CVSS v4 score of 9.0 (Critical) and an EPSS score of 7.0% (94th percentile) as of Sep 25, 2026.
Recent activity
6 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.