{"schemaVersion":4,"id":"CVE-2026-65964","aliases":[],"status":"published","duplicateOf":null,"title":"Pi-hole FTL: Log injection in webserver access-log writer chains to remote code execution via Lua-server-page evaluation","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.","dates":{"published":"2026-11-17T20:57:41.365Z","modified":"2026-11-17T22:22:59.408Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.6,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00433,"percentile":0.39397,"severity":"low","asOf":"2026-12-05T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-18T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00433,"percentile":0.39397}],"last30":[{"date":"2026-11-18T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00433,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00433,"percentile":0.39397}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code","description":"The 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.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-117","name":"Improper Output Neutralization for Logs","description":"The 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.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/117.html"}],"affected":[{"vendor":"pi-hole","product":"ftl","name":"FTL","label":"ftl","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"6.7","endInclusive":false}}],"versionsText":"< 6.7","eol":null,"hubHref":"/vendor/pi-hole/ftl"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/pi-hole/FTL/security/advisories/GHSA-g7v8-8q8f-hprp","label":"github.com/pi-hole/FTL/security/advisories/GHSA-g7v8-8q8f-hprp","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/pi-hole/FTL/pull/2935","label":"github.com/pi-hole/FTL/pull/2935","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/pi-hole/FTL/pull/2936","label":"github.com/pi-hole/FTL/pull/2936","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/pi-hole/FTL/commit/07fe23439b644fe47649690595fb647b0e76e367","label":"github.com/pi-hole/FTL/commit/07fe23439b644fe47649690595fb647b0e76e367","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/pi-hole/FTL/releases/tag/v6.7","label":"github.com/pi-hole/FTL/releases/tag/v6.7","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-17T20:57:41.365Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-17T22:22:59.408Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,66],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-05T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00433,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-17T22:22:59.408Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-17T22:22:59.408Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-17T22:17:39.675Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00433,"date":"2026-12-05T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-06T07:01:31.856Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-06T07:01:32.379Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-06T07:01:32.559Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-06T07:00:59.160Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-06T07:01:30.342Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-06T07:01:29.365Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-06T07:23:02.526Z","stale":false,"partial":false}}