CVE-2026-35518 PUBLISHED

Pi-hole FTL affected by Remote Code Execution (RCE) via dns.cnameRecords Newline Injection

Assigner: GitHub_M
Reserved: 03.04.2026 Published: 07.04.2026 Updated: 07.04.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 8.8

Product Status

Vendor pi-hole
Product FTL
Versions
  • Version >= 6.0, < 6.6 is affected

References

Problem Types

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE
  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') CWE