CVE-2020-14162
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.59%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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.
- CVSS 3.1
- 7.8 HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.59% probability · 46th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-78, CWE-269
- Affected
- pi-hole/pi-hole
- Source
- cve@mitre.org
References
- https://0xpanic.github.io/2020/07/21/Pihole.htmlExploit, Third Party Advisory
- https://docs.pi-hole.net/core/pihole-command/Vendor Advisory
- https://0xpanic.github.io/2020/07/21/Pihole.htmlExploit, Third Party Advisory
- https://docs.pi-hole.net/core/pihole-command/Vendor Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.