CVE-2026-65964: Pi-hole FTL: Log injection in webserver access-log writer chains to remote code execution via Lua-server-page evaluation
Vulnerability summary
CVE-2026-65964 is a medium (CVSS 6.6) Improper Control of Generation of Code vulnerability in pi-hole ftl. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 39.3% of scored vulnerabilities.
Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 17-11-2026PublishedVulnerability first disclosed.
- 17-11-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST6.6MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
39%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of CodeThe product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-117Improper Output Neutralization for LogsThe product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.
Affected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Pi-hole1 product
- ftl< 6.7
1 vendor · 1 product
References
5 links- github.com/pi-hole/FTL/security/advisories/GHSA-g7v8-8q8f-hprpX Refsource CONFIRM
- github.com/pi-hole/FTL/pull/2935X Refsource MISC
- github.com/pi-hole/FTL/pull/2936X Refsource MISC
- github.com/pi-hole/FTL/releases/tag/v6.7X Refsource MISC