CVE-2025-34087
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.
- Affected products
- Pi-Hole
- Pi-hole
- ≤ 3.3
- Fix
- Available
- CVSS 4.0
- 9.0 CRITICAL
- CVSS 3.1
- 8.8 HIGH
- EPSS
- 7.1% (94th percentile)
- Weakness
- CWE-78
- NVD status
- Analyzed
- Published
- 2025-07-03
- Attack patterns
- CAPEC-88, CAPEC-137
- Entry point
- domain request body
- Path
- admin/scripts/pi-hole/php/add.php
CVE-2025-34087 at NVD
1 known exploit for CVE-2025-34087
Proof-of-concept code and exploit modules indexed by Sploitus