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

Published Apr 7, 2026
·
Updated

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

2 affected components
Pi-hole pihole-FTL>=6.0<6.6
Pi-hole FTLDNS>=6.0<=6.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Pi-hole FTL (pihole-FTL) to a version that resolves this vulnerability.

    Fixed in 6.6

Event History

Apr 7, 2026
CVE Published
via MITRE·03:17 PM
Data Sourced
via MITRE·03:17 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

How do I fix CVE-2026-35518?

To fix CVE-2026-35518, update your Pi-hole FTL to version 6.6 or later.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203