{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "6.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "07fe23439b644fe47649690595fb647b0e76e367"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v6.7",
                "range": [
                  {
                    "fixed": "fa65a88f8cdef1013594d4de14108077954faea4"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fa65a88f8cdef1013594d4de14108077954faea4"
            },
            {
              "fixed": "07fe23439b644fe47649690595fb647b0e76e367"
            }
          ],
          "repo": "https://github.com/pi-hole/ftl",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-g7v8-8q8f-hprp"
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-65964",
  "modified": "2026-11-18T20:45:25.550263962Z",
  "published": "2026-11-17T20:57:41.365Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Pi-hole FTL: Log injection in webserver access-log writer chains to remote code execution via Lua-server-page evaluation"
}