The Gravity updater in Pi-hole through 4.4 allows an authenticated adversary to upload arbitrary files. This can be abused for Remote Code Execution by writing to a PHP file in the web directory. (Also, it can be used in conjunction with the sudo rule for the www-data user to escalate privileges to root.) The code error is in gravity_DownloadBlocklistFromUrl in gravity.sh.
{
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "4.4"
}
],
"source": "CPE_RANGE",
"cpe": "cpe:2.3:a:pi-hole:pi-hole:*:*:*:*:*:*:*:*"
}