Vulnerability Details : CVE-2021-32706
Public exploit exists!
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.
Vulnerability category: Execute code
Products affected by CVE-2021-32706
- cpe:2.3:a:pi-hole:pi-hole:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-32706
1.25%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 86 %
Percentile, the proportion of vulnerabilities that are scored at or less
Metasploit modules for CVE-2021-32706
-
Pi-Hole Top Domains API Authenticated Exec
Disclosure Date: 2021-08-04First seen: 2022-12-23auxiliary/admin/http/pihole_domains_api_execThis exploits a command execution in Pi-Hole Web Interface <= 5.5. The Settings > API/Web inetrace page contains the field Top Domains/Top Advertisers which is validated by a regex which does not properly filter system commands, which can then be executed by
CVSS scores for CVE-2021-32706
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.5
|
MEDIUM | AV:N/AC:L/Au:S/C:P/I:P/A:P |
8.0
|
6.4
|
NIST | |
8.8
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
2.8
|
5.9
|
NIST | |
7.6
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H |
2.8
|
4.7
|
GitHub, Inc. |
CWE ids for CVE-2021-32706
-
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2021-32706
-
https://github.com/pi-hole/AdminLTE/releases/tag/v5.5.1
Release Pi-hole web v5.5.1 · pi-hole/AdminLTE · GitHubRelease Notes;Third Party Advisory
-
https://github.com/pi-hole/AdminLTE/security/advisories/GHSA-5cm9-6p3m-v259
(Authenticated) Remote Code Execution Possible in Web Interface 5.5 · Advisory · pi-hole/AdminLTE · GitHubExploit;Third Party Advisory
Jump to