CVE-2026-145797
Description
Pi-hole FTL 6.8 with Pi-hole Core before 6.6 contains an SQL injection vulnerability that allows authenticated admins to execute OS commands as the pihole user via the files.gravity setting. Attackers can set a single-quoted payload through PATCH /api/config and trigger gravity, injecting SQL that calls the sqlite3 edit() function to run system commands.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://github.com/pi-hole/FTL/blob/v6.8/src/config/validator.c#L319-L347
- https://github.com/pi-hole/FTL/commit/8687f0af86e0bc1e0f825a39a929f07a83f8bdac
- https://github.com/pi-hole/FTL/releases/tag/v6.9
- https://github.com/pi-hole/FTL/security/advisories/GHSA-pj9m-9623-2g75
- https://github.com/pi-hole/pi-hole/blob/v6.5/gravity.sh#L466-L475
- https://github.com/pi-hole/pi-hole/commit/63a1e2f31fea48f8fc3b21fdf98f44390fbba9a7
- https://github.com/pi-hole/pi-hole/releases/tag/v6.6
- https://github.com/pi-hole/pi-hole/security/advisories/GHSA-cq9w-mv93-mxh7
- https://www.vulncheck.com/advisories/pi-hole-ftl-6.8-with-pi-hole-core-before-6.6-os-command-execution-via-sql-injection-in-files-gravity
CWEs
CWE-89
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.