An issue was discovered in Pi-Hole through 5.0. The local www-data user has sudo privileges to execute the pihole core script as root without a password, which could allow an attacker to obtain root access via shell metacharacters to this script’s setdns command.
Source: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14162
Reference (s):
- https://0xpanic.github.io/2020/07/21/Pihole.html
- https://docs.pi-hole.net/core/pihole-command/

