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.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit module (modules/exploits/unix/http/pihole_whitelist_exec.rb) that exploits a command injection vulnerability in Pi-Hole versions 3.3 and below (CVE-2025-34087). The exploit targets the web interface, specifically the whitelist feature, by injecting OS commands into the 'domain' parameter when adding a new domain to the whitelist. The module uses HTTP requests to interact with the Pi-Hole admin interface, retrieves an authentication token, and submits a crafted POST request to /admin/scripts/pi-hole/php/add.php to achieve command execution. The exploit supports command stager payloads, allowing for the execution of arbitrary commands or more complex payloads such as reverse shells. The module is operational and requires the target to be accessible over the network, with the web interface exposed and (if enabled) valid credentials provided. The code is written in Ruby and is structured as a standard Metasploit exploit module.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
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.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.