Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2025-34087: Authenticated command injection in Pi-hole allowlist management

Published Jul 3, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.0Critical · v4
EPSS7.0%94th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Pi-Hole
IdentifiersCVE-2025-34087CWE-78 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Exposure surface

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.

VendorProductType
Pi-HolePi-Holeapplication
Pi-HoleWeb Interfaceapplication
FAQ

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.
Activity feed

Recent activity

6 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity6Community discussion across Reddit, Mastodon, and other social sources.