CVE-2025-34087 Pi-Hole AdminLTE Whitelist (now 'Web Allowlist') Remote Command Execution
Authenticated attackers can execute arbitrary OS commands via unsanitized domain input in the Pi-hole allowlist feature.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-34087?
CVE-2025-34087 is a critical command injection vulnerability in Pi-hole LLC Web, published on 3 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An authenticated command injection vulnerability exists in Pi-hole versions up to 3.3. When adding a domain to the allowlist via the web interface, the domain parameter is not properly sanitized, allowing an attacker to append OS commands to the domain string. These commands are executed on the underlying operating system with the privileges of the Pi-hole service user.
This behavior was present in the legacy AdminLTE interface and has since been patched in later versions.
Weakness: CWE-78
Which versions are affected by CVE-2025-34087?
It affects 1 product.
Products include Pi-Hole Pi-Hole.
How do I fix CVE-2025-34087?
No fix has been published for CVE-2025-34087 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-34087 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-34087 exists.
Public exploit code: 1 Metasploit module.
Other vulnerabilities in Pi-hole LLC Web
- CVE-2020-8816 Pi-Hole AdminLTE Remote Code Execution
- CVE-2026-50130 Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`
- CVE-2020-11108 File upload in n/a
- CVE-2019-13051 Pi-Hole 4.3 allows Command Injection.
- CVE-2024-34361 Pi-hole Blind Server-Side Request Forgery (SSRF) vulnerability can lead to Remote Code Execution (RCE)
Sources
Also known as GHSA-j569-xm4x-j2qh.