CVE-2025-34087

HIGH

Pi-hole <3.3 - Command Injection

Title source: llm

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.

Exploits (1)

metasploit WORKING POC EXCELLENT
by h00die, Denis Andzakovic · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/pihole_whitelist_exec.rb

Scores

CVSS v3 8.8
EPSS 0.5091
EPSS Percentile 97.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-78
Status published
Products (1)
pi-hole/pi-hole < 3.3
Published Jul 03, 2025
Tracked Since Feb 18, 2026