{"id":"CVE-2026-65964","published":"2026-11-17T20:57:41Z","modified":"2026-11-17T22:22:59Z","title":"Pi-hole FTL: Log injection in webserver access-log writer chains to remote code execution via Lua-server-page evaluation","vendor":"pi-hole","product":"FTL","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00433,"percentile":0.3849,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-117","name":"Improper Output Neutralization for Logs"}],"references":[{"url":"https://github.com/pi-hole/FTL/security/advisories/GHSA-g7v8-8q8f-hprp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pi-hole/FTL/pull/2935","tags":["x_refsource_MISC"]},{"url":"https://github.com/pi-hole/FTL/pull/2936","tags":["x_refsource_MISC"]},{"url":"https://github.com/pi-hole/FTL/commit/07fe23439b644fe47649690595fb647b0e76e367","tags":["x_refsource_MISC"]},{"url":"https://github.com/pi-hole/FTL/releases/tag/v6.7","tags":["x_refsource_MISC"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":7.7},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"pi-hole","affectedVersions":[{"vendor":"pi-hole","product":"FTL","versions":["< 6.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-17T22:17:39.675485Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-127552","exploited":false,"provenance":"source"}}