Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Pi-hole Web interface
-
ExploitAccess DNS CNAME records configuration
-
ExecutionInject newline characters with dnsmasq directives
-
ImpactExecute arbitrary commands on system
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Authenticated attacker with access to Pi-hole FTL engine versions 6.0–6.5. Attacker must modify the dns.cnameRecords configuration parameter via the API or Web interface to inject newline characters and arbitrary dnsmasq directives, achieving command execution on the underlying system. |
| Impact | This vulnerability presents elevated real-world risk for internet-exposed Pi-hole instances with weak authentication. The CVSS vector (AV:N/AC:L/PR:L/UI:N) indicates network-reachable exploitation with low complexity once low-privilege authentication is achieved, resulting in complete system compromise (C:H/I:H/A:H). Publicly available exploit code exists per the GitHub Security Advisory, significantly lowering the skill barrier for exploitation. No EPSS or KEV data provided, but no public exploit identified at time of analysis in CISA's Known Exploited Vulnerabilities catalog. Attack complexity is genuinely low - the vulnerability requires only authenticated API access and a single malformed CNAME record submission. Primary risk factors include: Pi-hole instances accessible from untrusted networks, deployments using default or weak administrative credentials, and environments where Pi-hole runs with elevated privileges. The authentication requirement provides meaningful defense-in-depth, but credential stuffing, brute force, or secondary authentication bypass vulnerabilities could enable exploitation. Organizations running Pi-hole 6.0-6.5 should prioritize remediation, especially for internet-facing or multi-tenant deployments. |
| Exploit ScenarioDerived | An attacker identifies a Pi-hole instance with exposed administrative interface (port 80/443) and obtains valid credentials through credential stuffing, default password exploitation, or social engineering. The attacker authenticates to the Pi-hole web interface, navigates to the DNS CNAME records configuration section, and submits a malicious CNAME entry containing embedded newline characters followed by a dnsmasq dhcp-script directive pointing to an attacker-controlled reverse shell script. When FTL processes this configuration and restarts dnsmasq, the injected directive executes the attacker's payload with pihole user privileges, establishing persistent access to the underlying system. From this foothold, the attacker can pivot to other network resources, exfiltrate DNS query logs containing internal network reconnaissance data, or escalate privileges if the FTL process runs as root. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 07, 2026
Remote code execution in Pi-hole FTL DNS engine versions 6.0 through 6.5 allows authenticated attackers to execute arbitrary system commands by injecting malicious dnsmasq configuration directives through newline characters in the DNS CNAME records parameter (dns.cnameRecords). Authentication requirements confirmed (CVSS PR:L - low privileges required). Publicly available exploit code exists. CVSS 8.8 with network attack vector and low complexity indicates high exploitability once authenticated access is obtained.
RemediationAI
Upgrade Pi-hole FTL to version 6.6 or later, which contains fixes for the command injection vulnerability in dns.cnameRecords processing. Users should run 'pihole -up' or manually update the FTL component following Pi-hole's standard upgrade procedures documented at the project's GitHub repository. As interim mitigation for environments unable to immediately upgrade, restrict administrative interface access to trusted networks only, enforce strong authentication credentials, implement network segmentation to prevent Pi-hole from accessing critical internal systems, and audit existing CNAME record configurations for suspicious entries. Monitor system logs for unexpected dnsmasq restarts or configuration changes. Complete remediation guidance is available in the vendor security advisory at https://github.com/pi-hole/FTL/security/advisories/GHSA-28g5-gg88-wh5m.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FTLDNS (pihole-FTL) is the core DNS resolver and API engine for Pi-hole network-wide ad blocking software. The vulnerability stems from improper neutralization of special elements used in OS commands (CWE-78: OS Command Injection). The dns.cnameRecords configuration parameter passes user-controlled input to dnsmasq, the underlying DNS forwarder, without adequately sanitizing newline characters. An attacker with authenticated access to the Pi-hole administrative interface can inject arbitrary dnsmasq configuration directives by embedding newline-separated commands within CNAME record definitions. Because dnsmasq configuration directives can include dhcp-script and other parameters that execute external programs, this injection vector escalates to full remote code execution with the privileges of the FTL process, typically running as the pihole user or root depending on installation configuration.
Know when Ftl gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
Pi-hole FTL versions 6.0-6.5 contain a remote code execution vulnerability allowing authenticated users with low privileges to execute arbitrary system commands through DNS configuration manipulation. Organizations running affected Pi-hole instances risk complete DNS infrastructure compromise and potential lateral movement into internal networks, requiring immediate patching to prevent insider threats and compromised account exploitation.
Apply vendor patch. If immediate patching is not possible: restrict DNS configuration access to administrative accounts only, disable remote management interfaces, implement network segmentation to limit authenticated access to Pi-hole administrative functions, and monitor dnsmasq configuration files for unauthorized modifications.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in FTLDNS Pi-hole FTL Remote Code Execution
View all 5Session hijacking in Pi-hole FTL versions prior to 6.6.1 stems from a race condition in the CivetWeb-based HTTP session
The ftlserver component of TIBCO Software Inc.'s TIBCO FTL - Community Edition, TIBCO FTL - Developer Edition, TIBCO FTL
The realm configuration component of TIBCO Software Inc.'s TIBCO FTL Community Edition, TIBCO FTL Developer Edition, TIB
The realm server (tibrealmserver) component of TIBCO Software Inc. Rated high severity (CVSS 8.8), this vulnerability is
The ftlserver component of TIBCO Software Inc.'s TIBCO FTL - Community Edition, TIBCO FTL - Developer Edition, TIBCO FTL
The FTL Server (tibftlserver), FTL C API, FTL Golang API, FTL Java API, and FTL .Net API components of TIBCO Software In
The Windows Installation component of TIBCO Software Inc.'s TIBCO FTL - Community Edition, TIBCO FTL - Developer Edition
The FTL Server (tibftlserver) and Docker images containing tibftlserver components of TIBCO Software Inc.'s TIBCO Active
EUVD-2026-19685
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB