Pi-hole through 5.0 allows code injection in piholedhcp (the Static DHCP Leases section) by modifying Teleporter backup files and then restoring them. This occurs in settings.php. To exploit this, an attacker would request a backup of limited files via teleporter.php. These are placed into a .tar.gz archive. The attacker then modifies the host parameter in dnsmasq.d files, and then compresses and uploads these files again.
Use CWE-862, Pi-Hole vendor hub and Pi-Hole product page to widen CVE-2020-14971 into its surrounding weakness, vendor, and product context.
Compare it with CVE-2025-34087, CVE-2024-34361 and CVE-2024-28247 for nearby disclosures in the same product family.