{"id":"CVE-2020-14162","details":"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.","modified":"2026-08-27T08:40:01.297557Z","published":"2020-07-30T14:15:12.153Z","references":[{"type":"ADVISORY","url":"https://docs.pi-hole.net/core/pihole-command/"},{"type":"EVIDENCE","url":"https://0xpanic.github.io/2020/07/21/Pihole.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pi-hole/pi-hole","events":[{"introduced":"0"},{"fixed":"e9b039139c468798fb6d9457e4c9012171faee33"}],"database_specific":{"cpe":"cpe:2.3:a:pi-hole:pi-hole:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"5.1"}],"source":"CPE_RANGE"}}],"versions":["v5.0","v4.4","v4.3.5","v4.3.4","v4.3.3","v4.3.2","v4.3.1","v4.3","v4.2.2","v4.2.1","v4.2","v4.1.1","v4.1","v4.0","v3.3.1","v3.3","v3.2.1","v3.2","v3.1.4","v3.1","v3.0.1","v3.0","v2.13.2","v2.13.1","v2.13","v2.12.1","v2.12","v2.11.2","v2.11.1","v2.11","v2.10.2","v2.10.1","v2.10","v2.9.5","v2.9.4a","v2.9.4","v2.9.3","V2.9.2","V2.9.1","v2.9","v2.8.1","2.8","v2.7.1","v2.7","v2.6.3","v2.6.2","v2.6.1.2","v2.6.1.1","v2.6.1","v2.6","v2.5.3","v2.5.2","V2.5.1","v2.4","v2.3","v2.2","v2.1","2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-14162.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/pi-hole/web","events":[{"introduced":"0"},{"fixed":"d8d3f316061ba60e0b1dfc6a11f6e917380aca5f"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"5.1"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:pi-hole:pi-hole:*:*:*:*:*:*:*:*"}}],"versions":["v5.0","v4.3.3","v4.3.2","v4.3","v4.2","v4.1.1","v4.1","v4.0","v3.3","v3.2.1","v3.2","v3.1","v3.0.1a","v3.0.1","v3.0","v2.5.2","v2.5.1","v2.5","v2.4","v2.3.1","v2.3","v2.2","v2.1","v2.0","v1.4.4.2","v1.4.4.1","v1.4.4","v1.4.3.1a","v1.4.3.1","v1.4.3","v1.4.2","v1.4.1","v1.4","v1.3","v1.2","v1.1.7","v1.1.6","v1.1.5","v1.1.4","v1.1.3","v1.1.2","v1.1.1","v1.1.0","v1.0.0","v2.2.0","v2.1.2","2.1.1","2.1.0","v2.1.0-beta","v2.1.0-alpha-1","v2.0.5","v2.0.3","v2.0.2","v2.0.1","v2.0.0","2.0.0","1.2.1","1.2","1.1","1.0","0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-14162.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}