CVE-2026-35520: Pi-hole FTL affected by Remote Code Execution (RCE) via dhcp.leaseTime 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 lease time configuration parameter (dhcp.leaseTime). 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-35520?
CVE-2026-35520 is classified as a critical severity vulnerability due to its potential for Remote Code Execution.
How does CVE-2026-35520 affect Pi-hole FTLDNS?
CVE-2026-35520 allows an attacker to execute arbitrary code on the Pi-hole FTLDNS server via newline injection in DHCP lease time.
What versions of Pi-hole FTLDNS are impacted by CVE-2026-35520?
Pi-hole FTLDNS versions from 6.0 up to but not including 6.6 are affected by CVE-2026-35520.
How do I fix CVE-2026-35520?
To remediate CVE-2026-35520, upgrade your Pi-hole FTLDNS to version 6.6 or later.
What actions should I take if I am using an affected version of Pi-hole?
If you are using an affected version of Pi-hole, it is critical to update to a non-vulnerable version immediately to mitigate the risk.