CVE-2026-35521: Pi-hole FTL affected by Remote Code Execution (RCE) via dhcp.hosts Newline Injection
FTLDNS (pihole-FTL) provides an interactive API and also generates statistics for Pi-hole's Web interface. From 6.0 to before 6.6, the Pi-hole FTL engine contains a Remote Code Execution (RCE) vulnerability in the DHCP hosts configuration parameter (dhcp.hosts). This vulnerability allows an authenticated attacker to inject arbitrary dnsmasq configuration directives through newline characters, ultimately achieving command execution on the underlying system. This vulnerability is fixed in 6.6.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Pi-hole FTL (pihole-FTL)to a version that resolves this vulnerability.Fixed in 6.6
Event History
Frequently Asked Questions
What is the severity of CVE-2026-35521?
CVE-2026-35521 is classified as a high severity vulnerability due to its Remote Code Execution (RCE) potential.
How do I fix CVE-2026-35521?
To mitigate CVE-2026-35521, you should upgrade Pi-hole FTL from any version between 6.0 and before 6.6 to version 6.6 or later.
What versions of Pi-hole FTL are affected by CVE-2026-35521?
CVE-2026-35521 affects Pi-hole FTL versions from 6.0 to before 6.6.
What can attackers do with CVE-2026-35521?
Attackers can exploit CVE-2026-35521 to execute arbitrary code on the affected system remotely.
Is there a patch for CVE-2026-35521?
Yes, the patch for CVE-2026-35521 is included in the release of Pi-hole FTL version 6.6.