Command Injection in Pi-hole - CVE-2020-8816
Published: May 29, 2020 / Updated: February 20, 2022
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary commands on the target system.
The vulnerability exists due to improper input validation. A remote authenticated attacker can use a specially crafted DHCP static lease and execute arbitrary commands on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
How to mitigate CVE-2020-8816
Links to Public Exploits and PoC-codes
- Exploit #7361 - CVE-2020-8816 (A PoC for CVE-2020-8816 that does not use $PATH but $PWD and globbing) (February 18, 2022)
- Exploit #6689 - CVE-2020-8816 (Pi-hole Remote Code Execution authenticated Version >= 4.3.2) (September 2, 2021)
- Exploit #5685 - Pi-hole 4.3.2 - Remote Code Execution (Authenticated) (June 17, 2021)
- Exploit #4930 - Pi-Hole DHCP MAC OS Command Execution (December 16, 2020)
External References
- http://packetstormsecurity.com/files/157861/Pi-Hole-4.3.2-DHCP-MAC-OS-Command-Execution.html
- http://packetstormsecurity.com/files/158737/Pi-hole-4.3.2-Remote-Code-Execution.html
- https://github.com/pi-hole/AdminLTE/commits/master
- https://github.com/pi-hole/AdminLTE/pull/1165
- https://github.com/pi-hole/AdminLTE/releases/tag/v4.3.3
- https://natedotred.wordpress.com/2020/03/28/cve-2020-8816-pi-hole-remote-code-execution/
- https://twitter.com/Nate_Kappa/status/1243900213665902592?s=20