Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 54%

CVE-2026-39849: CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') in pi-hole FTL

0
High
VulnerabilityCVE-2026-39849cvecve-2026-39849cwe-93
Published: Tue May 05 2026 (05/05/2026, 20:50:26 UTC)
Source: CVE Database V5
Vendor/Project: pi-hole
Product: FTL

Description

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.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Affected versions
<6.6.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/13/2026, 03:33:28 UTC

Technical Analysis

CVE-2026-39849 is a CRLF injection vulnerability (CWE-93) in Pi-hole FTL prior to version 6.6.1. The dns.interface configuration field improperly accepts newline characters, allowing injection of arbitrary dnsmasq directives. Without an admin password, the configuration API is unauthenticated, enabling network-adjacent attackers to inject payloads that persist in /etc/pihole/pihole.toml and execute arbitrary commands on the host when DHCP leases are requested. The vulnerability arises because the validation in FTL 6.6 only checks syntactic validity and does not prevent newline injection. The issue is resolved in version 6.6.1.

Potential Impact

An attacker with network adjacency and access to the configuration API on Pi-hole FTL installations without an admin password can inject malicious directives into the dnsmasq configuration. This can lead to enabling the DHCP server and arbitrary command execution on the host system, potentially compromising the entire device running Pi-hole. The injected payload persists across restarts, increasing the risk of sustained compromise.

Mitigation Recommendations

This vulnerability is fixed in Pi-hole FTL version 6.6.1. Users should upgrade to version 6.6.1 or later to remediate this issue. Additionally, setting an admin password on the Pi-hole installation prevents unauthenticated access to the configuration API, mitigating the risk of exploitation. Patch status is not explicitly confirmed in the vendor advisory, but the fix is stated to be included in version 6.6.1.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-07T19:13:20.378Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69fa5fd1cbff5d8610282e41

Added to database: 5/5/2026, 9:23:29 PM

Last enriched: 5/13/2026, 3:33:28 AM

Last updated: 6/20/2026, 7:33:58 AM

Views: 89

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses