CVE-2025-34087

HIGH

Pi-hole < 3.3 - Authenticated OS Command Injection via Allowlist Domain Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2025-34087. PoCs published by h00die, Denis Andzakovic, including Metasploit module exploits/unix/http/pihole_whitelist_exec.

AI-analyzed exploit summary This Metasploit module exploits a command injection vulnerability in Pi-Hole's whitelist functionality, allowing arbitrary command execution by chaining commands to a domain entry. It includes authentication handling and version checking to confirm vulnerability.

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

This Metasploit module exploits a command injection vulnerability in Pi-Hole's whitelist functionality, allowing arbitrary command execution by chaining commands to a domain entry. It includes authentication handling and version checking to confirm vulnerability.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Pi-Hole <= 3.3
Auth required
Prerequisites: Network access to Pi-Hole admin interface · Valid credentials for authentication
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5

Scores

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

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

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