# CVE-2026-65964: Pi-hole FTL: Log injection in webserver access-log writer chains to remote code execution via Lua-server-page evaluation

- **Severity:** MEDIUM 6.6
- **CVSS:** 6.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.55% (percentile 40, 2026-11-28)
- **CWE:** CWE-94, CWE-117
- **Published:** 2026-11-17T20:57:41.365Z
- **Modified:** 2026-11-17T23:17:58.860Z

## Who should check

- Anyone running pi-hole FTL \< 6.7

## 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.

## Affected and fixed versions

- pi-hole FTL: \< 6.7 (cvelist)

## Mitigation

- Upgrade FTL to 6.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-65964. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-65964.md
Affected: pi-hole FTL < 6.7
Fixed in: pi-hole FTL 6.7

Steps:
1. Search this machine and project for pi-hole FTL: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-65964 being exploited?

There is no confirmed exploitation: CVE-2026-65964 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.55% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-65964?

Medium: CVSS 6.6 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-65964?

pi-hole FTL \< 6.7.

### Is there a fix for CVE-2026-65964?

Yes. Fixed in pi-hole FTL 6.7. Upgrade FTL to 6.7 or later.

### How do I check if I'm affected by CVE-2026-65964?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/pi-hole/FTL/security/advisories/GHSA-g7v8-8q8f-hprp>
- patch: <https://github.com/pi-hole/FTL/pull/2935>
- patch: <https://github.com/pi-hole/FTL/pull/2936>
- patch: <https://github.com/pi-hole/FTL/commit/07fe23439b644fe47649690595fb647b0e76e367>
- other: <https://github.com/pi-hole/FTL/releases/tag/v6.7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-65964>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-65964> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-65964>
