{"id":"CVE-2026-65964","summary":"Pi-hole FTL: Log injection in webserver access-log writer chains to remote code execution via Lua-server-page evaluation","details":"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.","aliases":["GHSA-g7v8-8q8f-hprp"],"modified":"2026-11-19T01:04:18.378069751Z","published":"2026-11-17T20:57:41.365Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-117","CWE-94"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65964.json"},"references":[{"type":"WEB","url":"https://github.com/pi-hole/FTL/releases/tag/v6.7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65964.json"},{"type":"ADVISORY","url":"https://github.com/pi-hole/FTL/security/advisories/GHSA-g7v8-8q8f-hprp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65964"},{"type":"FIX","url":"https://github.com/pi-hole/FTL/commit/07fe23439b644fe47649690595fb647b0e76e367"},{"type":"FIX","url":"https://github.com/pi-hole/FTL/pull/2935"},{"type":"FIX","url":"https://github.com/pi-hole/FTL/pull/2936"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pi-hole/ftl","events":[{"introduced":"0"},{"fixed":"fa65a88f8cdef1013594d4de14108077954faea4"},{"fixed":"07fe23439b644fe47649690595fb647b0e76e367"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"6.7"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"07fe23439b644fe47649690595fb647b0e76e367"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"fa65a88f8cdef1013594d4de14108077954faea4"}],"source":"REFERENCES_TAG","original_tag":"v6.7"}]}}],"versions":["v6.6.2","v6.6.1","v6.6","v6.5","v6.4.1","v6.4","v6.3.3","v6.3.2","v6.3.1","v6.3","v6.2.3","v6.2.2","v6.2.1","v6.2","v6.1","v6.0.4","v6.0.3","v6.0.2","v6.0.1","v6.0","v5.25.2","v5.25.1","v5.25","v5.24","v5.23","v5.22","v5.21","v5.20.1","v5.20","v5.19.2","v5.19.1","v5.19","v5.18.2","v5.18.1","v5.18","v5.17","v5.16.3","v5.16.2","v5.16.1","v5.16","v5.15","v5.14","v5.13","v5.12.1","v5.12","v5.11","v5.10.2","v5.10.1","v5.10","v5.9","v5.8.1","v5.8","v5.7","v5.6","v5.5.1","v5.5","v5.4","v5.3.4","v5.3.3","v5.3.2","v5.3.1","v5.3","v5.2","v5.1","v5.0","v4.3.1","v4.3","v4.2.3","v4.2.2","v4.2.1","v4.2","v4.1.2","v4.1.1","v4.1","v4.0","v3.0","v2.13.2","v2.13.1","v2.13","v2.12","v2.11.1","v2.11","v2.10","v2.9.4","v2.9.3","v2.9.2","v2.9.1","v2.9","v2.8","v2.7.4","v2.7.3","v2.7.2","v2.7.1","v2.7","v2.6.2","v2.6.1","v2.6","v2.5","v2.4.1","v2.4","v2.3.1","v2.3","v2.2","v2.1","v2.0","v1.11.1","v1.11","v1.10.3","v1.10.2","v1.10.1","v1.10","v1.9","v1.8","v1.7","v1.6","v1.5.1","v1.5","v1.4","v1.3.1","v1.3","v1.2.1","v1.2","v1.1","v1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-65964.json","vanir_signatures":[{"target":{"file":"src/config/config.c","function":"initConfig"},"deprecated":false,"digest":{"function_hash":"121683220907658749466823288085074720957","length":106751},"id":"CVE-2026-65964-0dd31d2b","signature_type":"Function","signature_version":"v1","source":"https://github.com/pi-hole/ftl/commit/07fe23439b644fe47649690595fb647b0e76e367"},{"target":{"file":"src/webserver/webserver.c"},"deprecated":false,"digest":{"line_hashes":["181404950660262239589005980481702541263","292428356686499560943025398882698281384","289306826878014301170818079574746934645","192662184210137271093661390466848995890"],"threshold":0.9},"id":"CVE-2026-65964-3bd90b64","signature_type":"Line","signature_version":"v1","source":"https://github.com/pi-hole/ftl/commit/07fe23439b644fe47649690595fb647b0e76e367"},{"digest":{"line_hashes":["98578714425704138344585558158861890354","273638721167506935976725164231348576323","213508081633270516689518381859924012181"],"threshold":0.9},"id":"CVE-2026-65964-7b95f495","signature_type":"Line","signature_version":"v1","source":"https://github.com/pi-hole/ftl/commit/07fe23439b644fe47649690595fb647b0e76e367","target":{"file":"src/config/validator.c"},"deprecated":false},{"signature_version":"v1","source":"https://github.com/pi-hole/ftl/commit/07fe23439b644fe47649690595fb647b0e76e367","target":{"file":"src/config/config.c"},"deprecated":false,"digest":{"line_hashes":["27099785887979361089602642954519473216","4850281398865575644172878687513844802","203052199956146804883628753687229399830","33970761358004606857145461307669418230"],"threshold":0.9},"id":"CVE-2026-65964-7e5323a3","signature_type":"Line"},{"digest":{"function_hash":"168847979054284614637927797430122506827","length":167},"id":"CVE-2026-65964-c3d1ef60","signature_type":"Function","signature_version":"v1","source":"https://github.com/pi-hole/ftl/commit/07fe23439b644fe47649690595fb647b0e76e367","target":{"function":"log_http_access","file":"src/webserver/webserver.c"},"deprecated":false},{"id":"CVE-2026-65964-d3ae1495","signature_type":"Line","signature_version":"v1","source":"https://github.com/pi-hole/ftl/commit/07fe23439b644fe47649690595fb647b0e76e367","target":{"file":"src/config/validator.h"},"deprecated":false,"digest":{"line_hashes":["297561544484036783665033832195881059902","140304724734159098996067013053208579048","317866386282084027516582878285452491476","268032451147797424847634455513467765768"],"threshold":0.9}}],"vanir_signatures_modified":"2026-11-19T01:04:18Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H"}]}