Exploit database

Vulnerability

CVE-2021-29449

Multiple Privilege Escalation Vulnerabilities Pihole

Vulnerability details

Score
6.3
Severity
medium

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

Description

Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Multiple privilege escalation vulnerabilities were discovered in version 5.2.4 of Pi-hole core. See the referenced GitHub security advisory for details.

CVE Program

Showing saved CVE details. Refresh is temporarily unavailable.

Exploit source choices

1 source
Pi-Hole Remove Commands Linux Priv Esc
MSF-linux--local--pihole_remove_commands_lpeMetasploitLinux,Unix / remotePreferred

Pi-Hole versions 3.0 - 5.3 allows for command line input to the removecustomcname, removecustomdns, and removestaticdhcp functions without properly validating the parameters before passing to sed. When executed as the www-data user, this allows for a privilege escalation to root since www-data is in the sudoers.d/pihole file with no password.

2021-04-20pihole_remove_commands_lpe.rb