Skip to main content

Pi-hole FTL CVE-2026-39849

| EUVDEUVD-2026-27498 HIGH
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-05-05 security-advisories@github.com
8.7
CVSS 4.0 · Vendor: github
Share

Severity by source

Vendor (github) PRIMARY
8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Primary rating from Vendor (github) · only source for this CVE.

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

3
Patch available
May 05, 2026 - 22:02 EUVD
Source Code Evidence Fetched
May 05, 2026 - 21:33 vuln.today
Analysis Generated
May 05, 2026 - 21:33 vuln.today

DescriptionCVE.org

Pi-hole FTL is the core engine of the Pi-hole network-level advertisement and tracker blocker. In versions before 6.6.1, the dns.interface configuration field in Pi-hole FTL accepted newline characters without validation, allowing an attacker to inject arbitrary directives into the generated dnsmasq configuration file. On installations with no admin password set (the default for many deployments), the configuration API is fully accessible without credentials, allowing a network-adjacent attacker to inject the payload, enable the built-in DHCP server, and achieve arbitrary command execution on the host the next time any device on the network requests a DHCP lease. The injected value is persisted to /etc/pihole/pihole.toml and survives restarts. The strncpy in the code path limits the total interface field to 31 bytes, but payloads such as wlan0\ndhcp-script=/tmp/p fit within this constraint. The dnsmasq config validation introduced in FTL 6.6 only checks syntactic validity, so valid directives injected via newline pass validation successfully. This issue has been fixed in version 6.6.1.

AnalysisAI

Remote command execution in Pi-hole FTL versions before 6.6.1 allows network-adjacent attackers with API access to inject malicious dnsmasq directives via unvalidated newline characters in the dns.interface configuration field, achieving arbitrary code execution when DHCP leases are requested. Deployments with no admin password (a documented default configuration) expose the configuration API without authentication, enabling unauthenticated remote exploitation. The Pi-hole project released version 6.6.1 with input validation that strips newline characters, and the fix commit (0c46e4ec7f) replaced validate_stub with validate_str_no_newline.

Technical ContextAI

Pi-hole FTL is the DNS and DHCP engine underlying Pi-hole ad-blocking deployments, which generates dnsmasq configuration files from user-controlled settings stored in /etc/pihole/pihole.toml. The vulnerability stems from CWE-93 (Improper Neutralization of CRLF Sequences in HTTP Headers / Configuration Files). The dns.interface field accepted newline characters without sanitization, allowing injection of arbitrary dnsmasq directives such as dhcp-script=/tmp/malicious_payload within the 31-byte strncpy limit (e.g., wlan0\ndhcp-script=/tmp/p). The dnsmasq dhcp-script directive executes the specified script whenever a DHCP lease is assigned, creating a path from configuration injection to command execution. The FTL 6.6 config validation only verified syntactic correctness of generated dnsmasq configs, so injected valid directives passed checks. The attack chain requires enabling the DHCP server via the same API, making this a multi-step configuration manipulation attack that triggers on network DHCP activity rather than immediate code execution.

RemediationAI

Upgrade to Pi-hole FTL version 6.6.1 or later, released by the vendor with commit 0c46e4ec7fe57f762fce261625f2cf5d43806e6d that replaces validate_stub with validate_str_no_newline to strip newline characters from dns.interface input. Download from https://github.com/pi-hole/FTL/releases/tag/v6.6.1 and follow Pi-hole update procedures. If immediate patching is not feasible, set a strong admin password via pihole -a -p to require authentication for the configuration API, which converts the attack from unauthenticated (PR:N) to requiring low privileges (PR:L). Restrict network access to the Pi-hole web interface (typically TCP 80/443) and API to trusted management networks only using firewall rules or reverse proxy authentication - note this breaks legitimate remote administration and may complicate troubleshooting. Audit /etc/pihole/pihole.toml for unexpected newline characters or dhcp-script directives, and review dnsmasq configuration in /etc/dnsmasq.d/ for injected payloads. Disable the DHCP server feature if not required, though this does not prevent configuration injection, only the DHCP-based trigger mechanism. Monitor for unexpected process execution from dnsmasq parent processes.

CVE-2025-34087 HIGH POC
8.8 Jul 03

Pi-hole versions up to 3.3 contain an authenticated command injection via the domain allowlist functionality. When addin

CVE-2020-11108 HIGH POC
8.8 May 11

The Gravity updater in Pi-hole through 4.4 allows an authenticated adversary to upload arbitrary files. Rated high sever

CVE-2021-29449 MEDIUM POC
6.3 Apr 14

Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Rated medium severity (CVSS 6.

CVE-2020-8816 HIGH POC
7.2 May 29

Pi-hole Web v4.3.2 (aka AdminLTE) allows Remote Code Execution by privileged dashboard users via a crafted DHCP static l

CVE-2024-34361 HIGH POC
8.8 Jul 05

Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. Rated

CVE-2023-23614 HIGH POC
8.8 Jan 26

Pi-hole®'s Web interface (based off of AdminLTE) provides a central location to manage your Pi-hole. Rated high severity

CVE-2021-32706 HIGH POC
8.8 Aug 04

Pi-hole's Web interface provides a central location to manage a Pi-hole instance and review performance statistics. Rate

CVE-2021-29448 HIGH POC
8.8 Apr 15

Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Rated high severity (CVSS 8.8)

CVE-2020-14162 HIGH POC
7.8 Jul 30

An issue was discovered in Pi-Hole through 5.0. Rated high severity (CVSS 7.8), this vulnerability is low attack complex

CVE-2020-12620 HIGH POC
7.8 Jul 30

Pi-hole 4.4 allows a user able to write to /etc/pihole/dns-servers.conf to escalate privileges through command injection

CVE-2024-44069 HIGH POC
7.5 Aug 19

Pi-hole before 6 allows unauthenticated admin/api.php?setTempUnit= calls to change the temperature units of the web dash

CVE-2021-3706 HIGH POC
7.5 Sep 15

adminlte is vulnerable to Sensitive Cookie Without 'HttpOnly' Flag. Rated high severity (CVSS 7.5), this vulnerability i

Share

CVE-2026-39849 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy