CVE-2026-35517: Pi-hole FTL affected by Remote Code Execution (RCE) via dns.upstreams 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 upstream DNS servers configuration parameter (dns.upstreams). 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
pihole-FTLto a version that resolves this vulnerability.Fixed in 6.6
Event History
Frequently Asked Questions
What is the severity of CVE-2026-35517?
CVE-2026-35517 is classified as a critical vulnerability due to its potential for Remote Code Execution.
How do I fix CVE-2026-35517?
To fix CVE-2026-35517, upgrade Pi-hole FTL to version 6.6 or higher.
What versions are affected by CVE-2026-35517?
CVE-2026-35517 affects Pi-hole FTL versions from 6.0 to before 6.6.
What can an attacker achieve with CVE-2026-35517?
An attacker can execute arbitrary code on the system by exploiting the Remote Code Execution vulnerability in CVE-2026-35517.
Is there a workaround for CVE-2026-35517 before upgrading?
There is no official workaround for CVE-2026-35517, so upgrading to a patched version is recommended.