Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.8

CVE-2026-35518: Pi-hole FTL allows attacker to run commands via CNAME records

CVE-2026-35518 · published 7 months ago
Summary

Versions 6.0 through 6.5 of Pi-hole’s FTL component let a logged‑in user add specially crafted DNS CNAME entries that inject new lines into the system’s DNS configuration. This can cause the system to execute arbitrary commands, potentially compromising the whole server. Update Pi-hole to version 6.6 or later to close the issue.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
pi-hole ftldns >= 6.0, <= 6.5
cpe:2.3:a:pi-hole:ftldns:*:*:*:*:*:*:*:*
Original advisory text
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
8.8 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-78OS Command Injection
CWE-93Improper Neutralization of CRLF Sequences ('CRLF Injection')
Timeline
Published7 Apr 2026
Updated4 Nov 2026
First seen7 Apr 2026
Sources
Track software like this
Free during beta