CVE-2021-32706

HIGH

Pi-hole Web interface <5.5.1 - Code Injection

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2021-32706. PoCs published by h00die, SchneiderSec, including Metasploit module auxiliary/admin/http/pihole_domains_api_exec.

AI-analyzed exploit summary This Metasploit module exploits a command injection vulnerability in Pi-Hole Web Interface <= 5.5 by leveraging improper input validation in the Top Domains/Top Advertisers field. It allows authenticated users to execute arbitrary commands via the gravity functionality.

Description

Pi-hole's Web interface provides a central location to manage a Pi-hole instance and review performance statistics. Prior to Pi-hole Web interface version 5.5.1, the `validDomainWildcard` preg_match filter allows a malicious character through that can be used to execute code, list directories, and overwrite sensitive files. The issue lies in the fact that one of the periods is not escaped, allowing any character to be used in its place. A patch for this vulnerability was released in version 5.5.1.

Exploits (1)

metasploit WORKING POC
by h00die, SchneiderSec · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/admin/http/pihole_domains_api_exec.rb

This Metasploit module exploits a command injection vulnerability in Pi-Hole Web Interface <= 5.5 by leveraging improper input validation in the Top Domains/Top Advertisers field. It allows authenticated users to execute arbitrary commands via the gravity functionality.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Pi-Hole Web Interface <= 5.5
Auth required
Prerequisites: Authenticated access to Pi-Hole Web Interface · Target running Pi-Hole Web Interface <= 5.5
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (2)

Core 2
Core References
Exploit, Third Party Advisory x_refsource_confirm
https://github.com/pi-hole/AdminLTE/security/advisories/GHSA-5cm9-6p3m-v259
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/pi-hole/AdminLTE/releases/tag/v5.5.1

Scores

CVSS v3 7.6
EPSS 0.6105
EPSS Percentile 98.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H

Details

CWE
CWE-94
Status published
Products (1)
pi-hole/pi-hole < 5.5.1
Published Aug 04, 2021
Tracked Since Feb 18, 2026