{"uuid": "c7e0d79f-49a2-459f-b016-d863f9c6440b", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2021-29449", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/pihole_remove_commands_lpe.rb", "content": "{\"actions\": [], \"aliases\": [], \"arch\": \"cmd\", \"author\": [\"h00die\", \"Emanuele Barbeno \"], \"autofilter_ports\": [], \"autofilter_services\": [], \"check\": true, \"default_credential\": false, \"description\": \"Pi-Hole versions 3.0 - 5.3 allows for command line input to the removecustomcname,\\n          removecustomdns, and removestaticdhcp functions without properly validating\\n          the parameters before passing to sed.  When executed as the www-data user,\\n          this allows for a privilege escalation to root since www-data is in the\\n          sudoers.d/pihole file with no password.\", \"disclosure_date\": \"2021-04-20\", \"fullname\": \"exploit/linux/local/pihole_remove_commands_lpe\", \"is_install_path\": true, \"mod_time\": \"2026-02-09 15:17:23 +0000\", \"name\": \"Pi-Hole Remove Commands Linux Priv Esc\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"config-changes\", \"ioc-in-logs\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/linux/local/pihole_remove_commands_lpe.rb\", \"platform\": \"Linux,Unix\", \"post_auth\": false, \"rank\": 500, \"ref_name\": \"linux/local/pihole_remove_commands_lpe\", \"references\": [\"GHSA-3597-244c-wrpj\", \"URL-https://www.compass-security.com/fileadmin/Research/Advisories/2021-02_CSNC-2021-008_Pi-hole_Privilege_Escalation.txt\", \"CVE-2021-29449\"], \"rport\": null, \"session_types\": [\"shell\", \"meterpreter\"], \"targets\": [\"DHCP\", \"DNS\", \"CNAME\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:49:10.914868Z"}