CVE-2026-35518: Pi-hole FTL affected by Remote Code Execution (RCE) via dns.cnameRecords 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 DNS CNAME records configuration parameter (dns.cnameRecords). 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-35518?
CVE-2026-35518 is classified as a high severity vulnerability due to its potential to allow remote code execution.
How do I fix CVE-2026-35518?
To fix CVE-2026-35518, update your Pi-hole FTL to version 6.6 or later.
What software versions are affected by CVE-2026-35518?
CVE-2026-35518 affects Pi-hole FTL versions from 6.0 up to, but not including, 6.6.
What is the nature of the vulnerability in CVE-2026-35518?
CVE-2026-35518 is a Remote Code Execution (RCE) vulnerability caused by newline injection in dns.cnameRecords.
Can CVE-2026-35518 be exploited remotely?
Yes, CVE-2026-35518 can be exploited remotely, allowing attackers to execute arbitrary code on the affected system.