BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-39849 in Pi-Hole Ftldns

High 8.8

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 ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
CVSS v48.7
EPSS1.0%
EPSS percentile62th
FixUnknown

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Pi-Hole Ftldns 6.6

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-39849
BreachSpider IDBS-2026-GLOBAL-151809-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2026-05-05
Last modified2026-07-24
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-93: CWE-93

Related attack patterns (CAPEC)

CAPEC-81 Web Server Logs Tampering via CWE-93

CAPEC-15 Command Delimiters via CWE-93

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Pi-hole FTL versions before 6.6.1 allows attackers to inject arbitrary directives into the dnsmasq configuration file by exploiting the `dns.interface` configuration field, which accepts newline characters without validation.

The vulnerability is triggered by injecting newline characters into the `dns.interface` configuration field, which can lead to the execution of arbitrary directives in the dnsmasq configuration file. This is particularly dangerous on installations where no admin password is set, which is the default for many deployments.

Questions

What is CVE-2026-39849?

A vulnerability in Pi-hole FTL versions before 6.6.1 allows attackers to inject arbitrary directives into the dnsmasq configuration file by exploiting the `dns.interface` configuration field, which accepts newline characters without validation.

What is the CVSS score for CVE-2026-39849?

CVE-2026-39849 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.0%.

Is CVE-2026-39849 actively exploited?

No confirmed active exploitation of CVE-2026-39849 as of 2026-07-25.

How do I remediate CVE-2026-39849?

Priority: IMMEDIATE. PSIRT: [email protected]

What systems are affected by CVE-2026-39849?

CVE-2026-39849 affects Pi-Hole Ftldns.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Pi-Hole","product":"Ftldns","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.