Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSet log to .lp inside webroot (admin config)
-
DeliveryInject <?lua?> payload via User-Agent header
-
ExploitAccess-log writer stores markup verbatim
-
ExecutionGET log file triggers CivetWeb Lua evaluation
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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
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
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.
Pi-hole versions up to 3.3 contain an authenticated command injection via the domain allowlist functionality. When addin
The Gravity updater in Pi-hole through 4.4 allows an authenticated adversary to upload arbitrary files. Rated high sever
Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Rated medium severity (CVSS 6.
Pi-hole Web v4.3.2 (aka AdminLTE) allows Remote Code Execution by privileged dashboard users via a crafted DHCP static l
Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing any client-side software. Rated
Pi-hole®'s Web interface (based off of AdminLTE) provides a central location to manage your Pi-hole. Rated high severity
Pi-hole's Web interface provides a central location to manage a Pi-hole instance and review performance statistics. Rate
Pi-hole is a Linux network-level advertisement and Internet tracker blocking application. Rated high severity (CVSS 8.8)
HTTP response splitting in Pi-hole Admin Interface before 6.3 lets unauthenticated remote attackers inject CRLF sequence
An issue was discovered in Pi-Hole through 5.0. Rated high severity (CVSS 7.8), this vulnerability is low attack complex
Pi-hole 4.4 allows a user able to write to /etc/pihole/dns-servers.conf to escalate privileges through command injection
Pi-hole before 6 allows unauthenticated admin/api.php?setTempUnit= calls to change the temperature units of the web dash
EUVD-2026-127552
NVD
CVE.org
EPSS
GitHub
Exploit-DB