Skip to main content

Pi-hole FTL CVE-2026-65964

| EUVDEUVD-2026-127552 MEDIUM
Code Injection (CWE-94)
2026-11-17 security-advisories@github.com
6.6
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Set log to .lp inside webroot (admin config)
  2. Delivery
    Inject <?lua?> payload via User-Agent header
  3. Exploit
    Access-log writer stores markup verbatim
  4. Execution
    GET log file triggers CivetWeb Lua evaluation
  5. Impact
    Execute commands as pihole OS user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The RCE chain requires a specific, non-default operator configuration, all documented in the GHSA advisory: debug.api must be enabled; files.log.webserver must resolve to a path inside webserver.paths.webroot; and that filename must match CivetWeb's lua_server_page_pattern (default **.lp$). Unauthenticated remote triggering of the evaluation additionally requires webserver.serve_all=true so the log file is served. Establishing this layout requires an administrator (PATCH /api/config, i.e. PR:H). What LIMITS exploitation: none of these settings are defaults, so a stock Pi-hole FTL install is not exploitable; the User-Agent planting is unauthenticated, but the full chain depends on administrator-level configuration having been applied first. When the log is not served through the Lua handler, the same unneutralized writer still permits log forgery and downstream log-parser injection (the fix also adds CR/LF/control-character escaping).

Impact

This is a real but conditional RCE, best read as medium priority rather than an emergency, and the input signals are internally consistent with that. The CVSS 3.1 vector (AV:N/AC:H/PR:H/UI:N, C:H/I:H/A:H, score 6.6) encodes the central nuance: although the User-Agent injection itself is unauthenticated and network-reachable, the full chain to code execution requires a high-privilege precondition (PR:H) and a non-default layout (AC:H) - an administrator must set files.log.webserver to a .lp file inside webserver.paths.webroot and enable debug.api (per the GHSA advisory, serve_all=true also needed for unauthenticated triggering). The vuln.today Decision label is this_month, not act_now or emergency, aligning with the admin/config-gated model. No EPSS score and no KEV status are present in the input, so there is no signal of active or widespread exploitation; absence of these is not evidence of safety but does argue against mass exploitation. A detailed, working public PoC (including a packaged loginj.py script) is published in the vendor GHSA advisory, so exploit knowledge is fully public even if commodity weaponization is not independently confirmed. Net: genuine OS-level code execution as the pihole user, but gated behind administrator-controlled configuration, so the practical threat model is 'admin self-backdoor / persistence' or 'attacker who already holds an admin session pivots to the OS,' not opportunistic internet-wide RCE.

Exploit ScenarioDerived

An administrator - or an attacker who has already captured an admin session - sends a single PATCH /api/config request that points the webserver access log at a .lp file inside the webroot and enables debug.api. Any unauthenticated HTTP request can then embed a <?lua ...?> payload in its User-Agent header, which the access-log writer stores byte-for-byte; a subsequent GET of that log file causes CivetWeb's Lua engine to evaluate the forged line as Lua source, running commands as the pihole user. A full working PoC and a packaged loginj.py exploit script are published in the vendor GHSA advisory; AC is high because the dangerous log/webroot/.lp/debug.api layout is non-default.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Pi-hole FTL before 6.7 writes attacker-controlled User-Agent data verbatim into the webserver access log and can be pushed into Lua code execution when the log file is placed inside the web root with a name matching CivetWeb's Lua server-page pattern (default '**.lp$'). The chain requires an administrator to first set debug.api=true and point files.log.webserver at a path inside webserver.paths.webroot via PATCH /api/config (PR:H), and serving of the log requires webserver.serve_all=true; none of these are defaults, so a stock installation is not exposed. On a configured instance, a request carrying a <?lua ... ?> tag in the User-Agent is evaluated on the next GET of the log file, executing commands inside the pihole-FTL process as the pihole user with access to pihole-owned configuration, the cli_pw credential file, gravity.db/pihole-FTL.db and logs; even without the Lua path, the same unescaped writer allows log forgery and downstream log-parser injection. The GHSA advisory publishes reproduction steps and a packaged script (loginj.py) - a public PoC reference exists, though it is not independently verified here as working exploit code; no CISA KEV listing is provided.

RemediationAI

Upgrade Pi-hole FTL to 6.7 or later (release tag v6.7 at https://github.com/pi-hole/FTL/releases/tag/v6.7); the fix commit 07fe23439b644fe47649690595fb647b0e76e367 and pull requests #2935 and #2936 add validate_webserver_logfile, which refuses any files.log.webserver value inside webserver.paths.webroot, plus a runtime guard and escape_string() neutralization in log_http_access. Vendor patch status is 'available from vendor' and the item is triaged as this_month, not act_now. Because the whole chain is configuration-gated, environments that cannot patch immediately can remove the precondition: keep files.log.webserver outside webserver.paths.webroot (for example under /var/log/pihole rather than a web-served document root), and avoid any log filename matching lua_server_page_pattern ('**.lp$'), since a matching extension inside the web root is what converts logged text into evaluated Lua - the trade-off is that access-log files must be relocated and log review paths updated. Turning off debug.api stops the access-log writing that carries the payload, at the cost of losing API debug logging, and leaving webserver.serve_all at its default (false) keeps the planted log unreadable to unauthenticated visitors, though authenticated admin retrieval may still trigger evaluation. On unpatched systems where the risky layout already exists, treat existing access logs as untrusted input for any downstream parser and review /etc/pihole/pihole.toml, /etc/pihole/cli_pw, gravity.db, pihole-FTL.db and /var/log/pihole/* for tampering, since code executed in the pihole-FTL context can read and modify all of them.

Affected VersionsENISA

FTL < 6.7

Affected Packages

euvd ftl fix: 6.7

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

Pi-hole FTL embeds the CivetWeb webserver, whose access-log callback log_http_access in src/webserver/webserver.c copied the request's User-Agent header byte-for-byte into the file configured by files.log.webserver whenever debug.api was enabled, without neutralizing CR/LF, control characters or template delimiters. That is a classic log injection (CWE-117) that escalates to code injection (CWE-94) because CivetWeb also ships a Lua server-page handler: any file under the document root matching lua_server_page_pattern (default '**.lp$') is parsed as Lua source and evaluated by the embedded Lua engine inside pihole-FTL. The configuration layer is what closes the loop, since an operator can set both files.log.webserver and webserver.paths.webroot; when the log lives in the web root with a matching extension, attacker-supplied log content becomes executable Lua. The upstream fix commit 07fe23439b644fe47649690595fb647b0e76e367 replaces the generic validate_filepath check on files.log.webserver with a new validate_webserver_logfile in src/config/validator.c that rejects any log path equal to or below webserver.paths.webroot (prefix comparison that still allows siblings such as '<webroot>-backup'), and adds a runtime backstop in log_http_access that refuses to write when the log path starts with the webroot while escaping the message via escape_string() to block forged log lines. Two corresponding pull requests (#2935, #2936) accompany the change. Triggering of the evaluation step, versus mere log planting, is not further described beyond the Lua handler behaviour documented in the advisory.

Know when Pi Hole 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

Vendor (github) PRIMARY 6.6 MEDIUM
AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.6 MEDIUM

Chain requires an administrator to set a non-default log/webroot/.lp/debug.api layout, so PR:H and AC:H; successful exploitation yields full code execution as the pihole user, giving C/I/A:H.

3.1 AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 17, 2026 - 22:04 EUVD
CVE Published
Nov 17, 2026 - 21:18 cve.org
MEDIUM 6.6

DescriptionCVE.org

Pi-hole FTL is the core engine of the Pi-hole network-level advertisement and tracker blocker. Prior to 6.7, log_http_access in src/webserver/webserver.c writes attacker-controlled User-Agent content to the access log without output neutralization when debug.api is enabled. If an administrator configures files.log.webserver inside webserver.paths.webroot with a filename matching lua_server_page_pattern, an unauthenticated request can plant Lua markup in that log and a later request can cause CivetWeb to evaluate the log as a Lua server page. The resulting commands run as the pihole operating-system user and can access or modify pihole-owned configuration, credentials, databases, logs, and rendered interface content. When the log is not served through the Lua handler, the same unneutralized writer still permits log forgery and downstream log-parser injection. This issue is fixed in version 6.7.

Threat Intelligence Overview

EPSS Score
0.6%
Top 53% exploitable
Prevalence
High
very popular self-hosted DNS ad blocker, large home and homelab footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +33
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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-2025-59151 HIGH POC
8.2 Oct 27

HTTP response splitting in Pi-hole Admin Interface before 6.3 lets unauthenticated remote attackers inject CRLF sequence

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

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